Moving actor

tiestotiesto Member Posts: 122
edited August 2012 in Working with GS (Mac)
Hello.
i am a new user of gamesalad and i want to know what to do so my actor increases speed in function of time.
exemple: he run 150 at x time and after three minutes he run for exemple 10000 and when he touch a specific actor (obstacle) his speed decreases for exemple: speed-200
also i want to know if an other actor can have the same speed that the first actor.
for exemple: when the speed of the first acor decreases the spped of the second decreases and when she increases also the other increases.
Thank you.

Comments

  • wij_manwij_man Member Posts: 66
    You need four separate rules. Create a timer which increases his speed, and when he collides with something ("When Actor overlaps or collides with Actor of Type...") decrease his speed. The third/fourth rules are a bit more complex, firstly create two attributes to store actor1's motion, on the first actor you will need to Constrain your new attributes to player.motion.x and player.motion.y, in actor2 you will need to constrain player.motion.x and player.motion.y to your global attributes.

    Brand new to GS so take my advice with a pinch of salt!
Sign In or Register to comment.