how do i make a bullet go to where ever i touch it

THINGTHINGTHINGTHING Member Posts: 84
edited November -1 in Working with GS (Mac)
how do i make a bullet go to where ever i touch it

Comments

  • mediagraficamediagrafica Member Posts: 12
    Save x and y of the target point into 2 attributes. Set move to behavior for your bullet. Specify direction x and y are same as for the saved attributes
  • vegasmike1vegasmike1 Member Posts: 192
    That might work ok but the problem is that if you touch another place the bullet might go there instead, the touch thing in GS is a bit tricky, getting it to go somewhere is easy, getting to stay on that course can be tricky. If you wait until the bullet is done, then its no problem but people DONT wait they just touch everywhere like chickens looking for corn on the ground. I have spawed an actor where the touch was and then set the bullet to go to that actor, and game a time out for the firing so it was not true until it died. This keeps the bullet on track. So there are game issues that are more difficult to resolve than where to send the bullet. Good luck
    Mike
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    http://gamesalad.com/forums/topic.php?id=9867

    Check out the project Orbz made- it's awesome! (and SO simple!)
  • ORBZORBZ Member Posts: 1,304
    lol, thanks scitunes :)

    Seems that this question comes up every week. Maybe this should be a sticky?

    http://gamesalad.com/game/play/76525
  • THINGTHINGTHINGTHING Member Posts: 84
    sorry is there a way to make my bullet keep going not just stop were i click
  • ORBZORBZ Member Posts: 1,304
    Yes, just take out the rule that limits it's travel duration.
  • THINGTHINGTHINGTHING Member Posts: 84
    what actor would that rule be in
  • alcamiealcamie Member Posts: 53
    The problem I have with all of these options is that a bullet travels along a trajectory, effected by gravity and doesn't stop unless it hit's something. If it doesn't hit anything it travels off the screen..

    Where it hit's the target is also where the damage occurs. I have a solution for this. It may not be elegant but it works with no performance issues that I can see at the moment.

    You guy's may be able to refine even more for me too.

    http://gamesalad.com/game/play/83629

    Cheers

    Alcamie
  • whity7whity7 Member Posts: 58
    I have a problem because I am trying to make touch movement but you have to specify touch 1 and that only works for the first touch.
Sign In or Register to comment.