TDS turret shooter

mutinysoftmutinysoft Member Posts: 59
edited November -1 in Working with GS (Mac)
i have a tds shooter for ipad im working on and i have the background and turret set up.

when a player plays this game i want them to touch anywhere on the screen and the turret will turn and shoot in that direction, or if the player is shooting in full auto the player can touch and drag on the screen and it turret will shoot continuously following the the players touch position.

how do i do this?

Comments

  • mutinysoftmutinysoft Member Posts: 59
    please guys really need help with this
  • GamersRejoiceGamersRejoice Member Posts: 817
    There is a nice little demo that SciTunes made, search for this in the gamesalad new tab. "Shoot to Mouse Position and Beyond"
  • GamersRejoiceGamersRejoice Member Posts: 817
    This one is nice too: "shoot towards touch"
  • mutinysoftmutinysoft Member Posts: 59
    thanks i will go have a look
  • ZimioZimio Member Posts: 8
    Create an attribute constrained to the turret's position (X and Y coordinates).
    In a rule:
    When mouse is down: Spawn bullet (in the direction put: VectorToAngle((mouse.position.xplayer.position.X),(mousepositionY-playerpositiony))

    good luck with your game
Sign In or Register to comment.