Wrap only one actor?
Can we wrap only an actor and not all of the actors in the scene? I only want to wrap the background actor but not the rest. Currently i have 2 background images beside each other, i'm having a rule saying when the moving background actor position y is less than -240, then change it to 720. But when i preview my game, it seems to have gaps in between the 2 background image after a period of time.
Best Answer
-
MobileRocketGames Posts: 128
Why is the background moving and not the actor? There may be a better way of doing what you are trying to do.
The problem with the gaps is either because its not moving the actor EXACTLY as it reaches or passes -240 or there is some lag between it moving the actor and the movement behaviour taking effect after it has been moved. There will be a fraction of a second of lag before it makes the jump or after it moves and those fractions add up. Unfortunately these are not supercomputers and will never be 100% precise.
You will need to optimize the behavior that is making the background move/follow whatever. If that can't be done, change the functionality of your game.
So far with GS I have found you need to make your game work within the confines of the engine and not vice-versa.