Create a pause button

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
This is really bothering me.

I have a cannon that fires where the player touches. I want to make a pause button. How do you put a pause button in the game without the cannon firing? Is there a way to make a HUD or is there a way to make the "button actor" appear...I guess, on "top" of the level, so that the cannon won't fire when the player touches the pause actor?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You basically have to add an attribute the determines when the cannon is allowed to fire or not and have rule that as long as though mouse position is outside of the set area for your pause button then the attribute is true and if its inside the area the attribute is false. Then add to your shot rule a condition for that attribute to be true.

    I have been hired a few times to add this to one of TSB's shot templates for users in the past. and while I would have to dig those projects up to know for sure that was the general gist of it.

    image
Sign In or Register to comment.