Move to: how fast is speed setting in time?

turnstyleturnstyle Member, PRO Posts: 13
edited November -1 in Working with GS (Mac)
Is there away to tell an object to take 30 seconds to move from one side of the screen to the other side. I'm using behavior Move To, but I don't know what speed equals. Is there a per pixel rate like miles per hour. I figure if I'm telling an actor to move to a pixel location, I should be able to tell when it should get there.

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    The speed in the Move To behavior is pixels per second.

    The formula is:

    distance in pixels / time in seconds

    So for your Actor to move across the screen, set the speed to 16, which is 480/30.
  • synthesissynthesis Member Posts: 1,693
    FYI:
    I have found that if you exceed about 250-300 for the speed...bad things start to happen...such as misfires...or bad collision detection.
  • JGary321JGary321 Member Posts: 1,246
    You could just use interpolate & tell it to take 30 secs....
  • turnstyleturnstyle Member, PRO Posts: 13
    Awesome thanks for the info!
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Yes, I would use Interpolate like JGary says. It is more reliable.
  • design219design219 Member Posts: 2,273
    Interpolate was delivered from upon high to bring peace and comfort to the children of GameSalad. The Sous Chefs looked upon it and "it is good". And there was much rejoicing.

    _________________________________

    So my kids think it's so cool their dad has made three fun iPhone apps. I come home from work and they say "Dad, can I get on your iPhone ...and play Angry Birds?"
Sign In or Register to comment.