Bennu Game Development

English Forums => Helpdesk => Topic started by: MisterN on March 17, 2012, 01:49:06 AM

Title: pause text sometimes appears
Post by: MisterN on March 17, 2012, 01:49:06 AM
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?
Title: Re:pause text sometimes appears
Post by: SplinterGU on March 17, 2012, 10:42:22 AM
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
Title: Re:pause text sometimes appears
Post by: MisterN on March 17, 2012, 03:40:26 PM
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