Determine image based on angle

daverennerdaverenner Member Posts: 133
edited November -1 in Working with GS (Mac)
How can i swap my image based on angle? I tried everything. Basically if you touch on the right side of the screen it needs to display one image. If you press on the left side its a different image.
Where you touch it launches a bullet and all that works, it will shoot correctly but i need another actor to face the way the bullet is going. I tried saving the value to an attribute and constraining it to another actor and it will rotate the other actor the correct degrees, so i thought i could use math < > and swap the image that way but it didn't work.

Dave

Comments

  • gazjmgazjm Member Posts: 578
    When I have had to do this, the only way was to actually have an image for each way you want the actor to face. Then if touch is xxxx change image to xxxxx

    Don't think GS has a funtion for flipping an image.
  • daverennerdaverenner Member Posts: 133
    Don't want to flip it. Just swap image based on the X of where pressed, but no matter what it will not work.
Sign In or Register to comment.