Background not centered which creates black gaps

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

atarim
Posts: 26
Joined: 19 Apr 2010, 04:40

Background not centered which creates black gaps

Postby atarim » 29 Apr 2010, 07:31

I use the openspace component spread all over the stage (1000x665).
I use a background for openspace with the same size.
For some reasons, I had to stretch the grid to exceed the background size but the walkable tiles remain inside that background area.
In addition I created few access opints to allow random entering points for the users into the game.

My problem is that everytime I enter the room, the background seem to slide a bit and leave black gaps in the stage as if the whole component had an offset to the left/top.

I don't need and scrolling during the walking of my avatar, and the whole thing should stay static in the room.

I tried using "centerViewOnTile", but it didn't seem to make any change.

What am I doing wrong?
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 29 Apr 2010, 07:49

Can you please show a screenshot?
Paolo Bax
The SmartFoxServer Team
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 30 Apr 2010, 21:07

Screenshot received.
In OpenSpace 1 you can't inhibit the map scrolling. When the avatar is created, the map is centered on it, causing the background shift.
You should use OpenSpace 2, in which you can set custom map boundaries.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v1 discussions and help”

Who is online

Users browsing this forum: No registered users and 13 guests