Car Blast logic

creativeappscreativeapps Member Posts: 1,770
edited November -1 in Working with GS (Mac)
On Start Button my car is moving. Now suppose for 2 or 3 seconds its not moving that time I want to autometically blast that car. How to do that? Please help me out.

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    Change the linear velocityX, if you'd like it to slow down a little also tell it to accelerate the opposite direction.
  • creativeappscreativeapps Member Posts: 1,770
    on start button my car is moving and suppose 2 or 3 seconds its not moving means car x and y position not changing for few seconds that time I want to destory the car. What to do for that?
  • creativeappscreativeapps Member Posts: 1,770
    Anyone Please?
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    How about the following:

    When:
    ....self.motion.linear velocity.X < 3
    ....self.motion.linear velocity.Y < 3
    ........Timer: After 2 seconds
    ............When:
    ................self.motion.linear vlelocity.X < 3
    ................self.motion.linear velocity.Y < 3
    ....................BANG!
  • creativeappscreativeapps Member Posts: 1,770
    I will try and let you know thanks
Sign In or Register to comment.