shooting help

zombiekillerzombiekiller Member Posts: 3
edited July 2012 in Working with GS (Mac)
hi i am trying to make a double barrel shotgun i put a reload button to spawn so when you press it it switches the image to a double barrel shotgun reloading but when it is reloading it still shoots the bullets i need to time it so after the image switches back from the reloading it will shoot again

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    On the reload button:
    When Touch is Pressed --> change attribute game.reloading to true --> timer (run to completion checked) after 0.5 seconds --> change attribute game.reloading to false

    On the shotgun actor:
    When touch is pressed [or however it is that you shoot the shotgun] AND game.reloading is false --> spawn bullets

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • zombiekillerzombiekiller Member Posts: 3
    thank you for your time but it is still not working
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Well, that's the basic idea. You can set the timer to any amount you want. What about it isn't working for you? Can you post a video or a link to your project file?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • zombiekillerzombiekiller Member Posts: 3
    i got it to work but i also want to know how to make a delay between the two bullets i shoot because double barrel shotguns have a delay between the two shots
Sign In or Register to comment.