Need Angle Help

AppFueledAppFueled Member Posts: 308
edited August 2012 in Working with GS (Mac)
I have a spear that is rotating back and forth. When the player touches the screen, the spear stops rotating. I then want the spear to fly in the direction it is pointing towards. How do I do that?

Best Answer

  • micksolomicksolo Posts: 264
    Accepted Answer
    i think you'd just have two states for example

    spearstate = 1, rotate

    player presses screen, go to spearstate 2

    spearstate =2; change velocity (whatever speed), direction = 0 (MUST HAVE relative to actor checked) so it goes in the direction it's facing.

Answers

Sign In or Register to comment.