Rapid fire based on finger position...

chaleychaley Member, PRO Posts: 226
edited November -1 in Working with GS (Mac)
So, I'm trying to get my gun to respond to finger position so that when the finger is touching the iPhone glass, the gun will fire and follow the finger position.  Currently, the gun only fires when you tap the gun which would probably start to hurt your finger after tapping it for a while.

I pretty much need a way to have the gun fire continuously when the finger is on the gun and follow the position of the finger as it moves.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    are you spawning the bullets ?

    if so you probably have when attribute = true or 1
    -spawn bullet

    Instead change it to:

    When attribute =true
    -timer EVERY 1 second
    --then put your spawn behavior inside the timer thats inside the rule

    cheers
  • msonesmsones Inactive, Chef Emeritus Posts: 75
    Hey all,

    This is a great example of a question to ask in Cookbook. Go check it out!
  • chaleychaley Member, PRO Posts: 226
    Thanks for the response. I'm pretty new to this, so I'm not sure the best way to generate bullets. Is spawning them advisable?
Sign In or Register to comment.