Page 1 of 1

Background not centered which creates black gaps

Posted: 29 Apr 2010, 07:31
by atarim
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?

Posted: 29 Apr 2010, 07:49
by Bax
Can you please show a screenshot?

Posted: 30 Apr 2010, 21:07
by Bax
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.