Posted By
Message
eyeangle
Registered 12/06/2003
Points 1683
11th October, 2007 at 21:08:11 -
I want to keep things as simple as possible and not have to bring in a counter.
Upon pressing [Enter]
+ Map is (not) visible = Show Map
Upon pressing [Enter]
+ Map is visible = Hide Map
The map is a sub application (frame, level). Any ideas would help, thanks.
theonecardgame.com
viva/volt Awesome SauceRegistered 26/08/2006
Points 1694
12th October, 2007 at 01:44:37 -
I would just use a counter, I'm pretty sure you need some variable to do it. Just have a flag object and say "Upon pressing enter" - Toggle flag. Then flag is on, show and flag is off, hide. :\
http://bfollington.tumblr.com
Klikmaster Master of all things KlikRegistered 08/07/2002
Points 2599
12th October, 2007 at 12:58:53 -
Upon pressing [Enter]
+ Flag is off
+ Map is (not) visible = Show Map + Set flag on
Upon pressing [Enter]
+ Flag is off
+ Map is visible = Hide Map + Set flag on
[Negate] Upon pressing [Enter] = Set Flag off
n/a
AndyUK Mascot ManiacRegistered 01/08/2002
Points 14586
12th October, 2007 at 17:35:41 -
Or
Upon pressing enter - toggle flag
flag is on = show map
flag is off = hide map
(you might want to add 'only once when event loops' or it might flicker)
.
-Liam- Cake AddictRegistered 06/12/2008
Points 556
12th October, 2007 at 17:37:50 -
Originally Posted by AndyUK [Ectoprods] Or
Upon pressing enter - toggle flag
flag is on = show map
flag is off = hide map
(you might want to add 'only once when event loops' or it might flicker)
How do you do that?
Tell 'em Babs is 'ere...
AndyUK Mascot ManiacRegistered 01/08/2002
Points 14586
12th October, 2007 at 19:05:20 -
It's under 'limit conditions' in specials.
You might not need it.
.
Tim I'm on here way too muchRegistered 25/08/2006
Points 132
12th October, 2007 at 19:07:22 -
It's easy slink, you just say
*Upon pressing [key] -> toggle flag [x]
*flag [x] is on? -> show map ([map] = visible)
*flag [x] is off? -> hide map ([map] = invisible)
- Just realised you probably meant about the run event once thing that would go >
*Only one action while event loops (or whatever)
~Upon pressing [key] -> toggle flag [x] Edited by the Author.
http://www.SilverNova.co.uk
-Liam- Cake AddictRegistered 06/12/2008
Points 556
12th October, 2007 at 21:01:22 -
Yeah, just the one event action! Thank you!
Tell 'em Babs is 'ere...