How can I change speed when colide with other actor?

Reigiv4sReigiv4s Member Posts: 27
edited June 2012 in Working with GS (Mac)
hello guys. im working on new project on iphone and i need a litle help .
my Actor (player) move to self. position.Y to mouse.position.Y with 150 speed..

i want to make one actor name(boost), when my actor name (player) colide with Actor(boost) how can i change the speed from 150 to 400 for 10 sec..

Best Answer

  • HC_DKHC_DK Posts: 92
    edited June 2012 Accepted Answer
    Add a integer attribute called eg. SPEED. Change this attribute from 150 to 400 and after 10 sec back to 150.
    And of course use this in the MOVE TO behaviour as the Speed.

Answers

  • HC_DKHC_DK Member Posts: 92
    Instead of typing in the speed use an attribute and when you collide with the boost actor change the attribute to 400. Use a TIMER AFTER 10 sec. change attribute to 150. Remember to tick on RUN TO COMPLETION.

    HC
  • Reigiv4sReigiv4s Member Posts: 27
    change attribute ????? to ??????

    what you mean [Change attribute to 400]
    1: change attribute ????? to 400
    2: change attribute 400 to ????
Sign In or Register to comment.