pause text sometimes appears

Started by MisterN, March 17, 2012, 01:49:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MisterN

I dont get it, sometimes the pause text wont appear. Run my game, and repeatedly press the esc button, youll see that sometimes "PAUSED" wont appear. How can I fix so that it is always there?
werg

SplinterGU

when the user press ESC you need consume the keys echo until the user release the key...

you need some like this...

if ( key(_ESC))

... pause code without frame...

while( key(_ESC)) frame; end; // what to the user release the key and then continue.
end
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

MisterN

Thanks, thatd be great if I knew exactly where to put it in the code... I put it in there at the end at the pause menu forever stayed on
werg