The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.36 / 5.00 33,851 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 12,195 ViewsHello!
I´m doing a game,a shooting game,and i start thinking about put a way to pause it,but i didn´t found any tutorial to help me with that so....please,can someone help me and tell me how to do it?....
Thanks anyway!!
Henrique T.M.
stop() is bad what you should do is make a variable call it pause and then
make it true when a button is pressed and put
if(!pause){
//all actions
}
and your good
.
its simple..Just put:
var blah:Boolean = true;
if(blah){
// your code
}
Around your code. E.g.
if(blah){
_root.score++;
}
And then when you want to pause, just put:
blah = false;
And when you want to unpause, do:
blah = true;
Thanks,but,it doens´t seems to work,maybe i did something wrong but it doesn´t work....
what i did was that:
on (keyPress "p") {
_root.stop();
}
At 2/22/07 09:16 AM, onlyproductions wrote: stop() is bad what you should do is make a variable call it pause and then
make it true when a button is pressed and put
if(!pause){
//all actions
}
and your good
thanks,i´ll try the variable thing now :D
At 2/22/07 09:19 AM, West-End-Pro wrote: its simple..Just put:
Ok,i´ll try the variable thing,but well,i got your fla,but,my flash is the MX version,your .fla seems to be the 8.0 version.so...i can´t run it xD,but thx to care about :DDD
At 2/22/07 09:29 AM, Flashing-Bird wrote:At 2/22/07 09:19 AM, West-End-Pro wrote: its simple..Just put:Ok,i´ll try the variable thing,but well,i got your fla,but,my flash is the MX version,your .fla seems to be the 8.0 version.so...i can´t run it xD,but thx to care about :DDD
=[ Have a MX copy =)
At 2/22/07 09:29 AM, Flashing-Bird wrote:At 2/22/07 09:19 AM, West-End-Pro wrote: its simple..Just put:Ok,i´ll try the variable thing,but well,i got your fla,but,my flash is the MX version,your .fla seems to be the 8.0 version.so...i can´t run it xD,but thx to care about :DDD
people still use mx?
lulz
Yay...thx to try to send me again,but,it still didn´t worked,i don´t why but...anyway,i think i did it work with your example so don´t worry and thanks one more time :D
At 2/22/07 11:31 AM, VictoryGin wrote:At 2/22/07 09:14 AM, backflipair wrote: Use this action:Don't listen to the other people: use this guy's advice.
_root.stop();
on(press) {
stop();
}
That's all you need. Fuck making things difficult, this'll work perfectly.
Ur the one making things difficult here. That will just stop somin on the frame....Not the code from doing what it does.
A pause function is meant to 'stop the code' and that won't.