Weapon throwing Targeting?

FrazzleFrazzle Member Posts: 223
edited November -1 in Working with GS (Mac)
I need to know how to make my actor throw an object by tapping anywhere on the screen.
Bear in mind that I want the object to go in the direction and not just stop where i pressed.

Any help will be much appreciated.

Comments

  • charlieaf92charlieaf92 Member Posts: 84
    Frazzle said:
    I need to know how to make my actor throw an object by tapping anywhere on the screen.
    Bear in mind that I want the object to go in the direction and not just stop where i pressed.

    Any help will be much appreciated.

    Make one big actor that is transparent and covers the screen. Set a rule that on touch you grab the touch X and Y coordinates. Then use those to direct your projectile.
  • THINGTHINGTHINGTHING Member Posts: 84
    charlieaf92 said:
    Make one big actor that is transparent and covers the screen. Set a rule that on touch you grab the touch X and Y coordinates. Then use those to direct your projectile.

    don't understand what you meen by,Set a rule that on touch you grab the touch X and Y coordinates. Then use those to direct your projectile.
Sign In or Register to comment.