Help with looping movement
spikeyfish2
Member Posts: 1
I've pretty much made my complete game (the first 5 levels of), but in subsequent levels, I need something to move around the screen. Basically the movement involves:
- Moving left to the left side of the screen
- Rotating towards the opposite way
- Moving right to the right side of the screen
- Rotating towards the left side
- *loop above*
I just can't find a way to do it. I've set rules to see where on the screen, and which direction the actor is, but the behaviors just don't seem to run inside (the "otherwise" ones do, though).
Any ideas?
Thanks
- Moving left to the left side of the screen
- Rotating towards the opposite way
- Moving right to the right side of the screen
- Rotating towards the left side
- *loop above*
I just can't find a way to do it. I've set rules to see where on the screen, and which direction the actor is, but the behaviors just don't seem to run inside (the "otherwise" ones do, though).
Any ideas?
Thanks
Comments
Set 2 actors on each side of the screen(make them invisible)
Put once the actor(character thing) hits the actor on the right side turn left and go left. And the same for the left side. Or use the interpolate behavior. Again I am probably not the person to answer this question.
DL
in a way, GS itself is a Puzzle game. ;-) You know what you want, you have to figure "how to do it".
then if you want to make the actor have better performance in the game depending on what you do with him you can give it an interpolate instead of move to, so physics don't have to be used.
good luck with your game.
AjBlue
http://www.mediafire.com/?k9yc75bhky3o2j9