Cannon Problem Please Help!

tgs976tgs976 Member Posts: 3
edited November -1 in Working with GS (Mac)
I'm making a cannon game from the cannon template. I have made a rule on another actor (called touchblock) that when touch is pressed, destroy this actor. However, when i touch the touchblock, the cannon fires and i don't want the cannon to fire. Does anybody have any suggestions?

Comments

  • CrazybreadmanCrazybreadman Member Posts: 674
    Create a rule w/ a boolean attribute that switches to true when you touch the touchblock, and otherwise false. Set the cannon to only fire when 'touchblock' is false. But you must make sure the actor isn't destroyed before activating the boolean attribute. So one way to do this is put 'destroy' in a different rule box and set it off with a switch. Or you can delay it with a timer or interpolate.
  • tgs976tgs976 Member Posts: 3
    Thanks, CrazyBreadMan, but for some reason it's not working, i've already tried something like this before and it didn't work so i tried what you said and it didn't work either. Have you got this to work? Do you have any other ideas?
Sign In or Register to comment.