Actor isn't staying within specified movement constraints

CutOutGamesCutOutGames Member Posts: 30
edited February 2012 in Working with GS (Mac)
I've been fooling around with a randomly moving actor. I've got it moving around randomly fine, but the actor won't stay on the screen, even when I've specified that the random variables the Move To uses should keep it moving randomly within the screen.

My actor looks like this (I'm working in iPad Landscape):
Timer - Every 3 seconds (run to completion not selected) -->
Move To - Position X = random(0,1024) Position Y = random(0,768) Speed = 2000 (I want it to move very quickly)
It's relative to "scene", and Run to completion is selected.

To me, it looks right. However, after a few seconds, the actor decides to go off screen (outside of the max constraints of the random variables). I've tried selected and deselecting the Run to Completion in the Timer and Move To, and changed it to being Relative to "actor", and I get the same result. What am I doing wrong? I just want the actor to move randomly, but stay on screen. Any help would be appreciated!

Comments

  • CutOutGamesCutOutGames Member Posts: 30
    Interpolate makes it work just the way I wanted it too! Thanks tshirtbooth!
Sign In or Register to comment.