Forum Topic: what is code for pause?

(96 views • 2 replies)

This topic is 1 page long.

<< < > >>
None

bocodamondo

Reply To Post Reply & Quote

Posted at: 9/27/09 01:34 PM

bocodamondo LIGHT LEVEL 09

Sign-Up: 08/04/09

Posts: 253

what is the code
to make pause in the flash game ??

BBS Signature

None

UnknownFury

Reply To Post Reply & Quote

Posted at: 9/27/09 01:40 PM

UnknownFury EVIL LEVEL 26

Sign-Up: 08/10/05

Posts: 6,027

There is no 'pause code'. Use a boolean variable.

var pause : Boolean = false;

function enterframe(e : Event)
{
    if(!pause)
    {
        // Code
    }
}

And add a keylistener or whatever to get whether the pause key is pressed, and set the pause variable accordingly.

Portfolio(Under construction): UnknownFury.com |
Msn: giant_ak_47@msn.com | Contact: me@unknownfury.com
Follow me on twitter!


None

bocodamondo

Reply To Post Reply & Quote

Posted at: 9/27/09 02:32 PM

bocodamondo LIGHT LEVEL 09

Sign-Up: 08/04/09

Posts: 253

At 9/27/09 01:34 PM, bocodamondo wrote: what is the code
to make pause in the flash game ??

AWESOME
thanks :D i gonne try now

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 07:22 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!