POP UP ACTORS IN PAUSED GAME - SOLVED

BlightXP

  • Posts: 121
hi everyone, i just want to ask about making a pop up actors (i mean buttons like resume, reload and quit to menu) after the player hit the pause button.

i'm thinking of creating actors after the pause button was clicked but the problem is what should be the trick to make the other button disappear? i've tried the kill last created actor but still have another actor left in the game screen..

hope to find a solution for this.

-sorry about my grammar. xp

« Last Edit: January 23, 2014, 05:03:25 pm by BlightXP »
abcdefghijklmnoyqrstuv-WXP&Z ;D

sdieters

  • Posts: 2068
try something like this:

make a scene event.

Always
IF [not [game is paused]]
~ IF (pauze button) was pressed,
~~ pause game
OTHERWISE
~ IF (pauze button) was pressed,
~~ unpause game
Create actor (button 1) at (where ever you want)
Create actor (button 2) at (where ever you want)
Create actor (button 3) at (where ever you want)

and add to all these buttons the following:

Always,
IF [not [Game was paused]]
~kill self
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

gamegirlxl

  • Posts: 713

...Always...


Hmm...This might cause an infinite loop.  Maybe try using a custom event or two?

sdieters

  • Posts: 2068
oh ofcourse...
oh well the creating and pausing should be the same, but when the pause button is pressed, it should trigger an custom "pause" and "unpause" event...
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

BlightXP

  • Posts: 121
just tried and toasted. ^^
it's working, thanks mate. :D
abcdefghijklmnoyqrstuv-WXP&Z ;D

sdieters

  • Posts: 2068
You're welcome =)
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p