The Daily Click ::. Forums ::. Klik Coding Help ::. 1 [Button], 2 [Tasks]
 

Post Reply  Post Oekaki 
 

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 Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
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. :\

 
Image
http://bfollington.tumblr.com

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
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 Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
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 Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
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?

 
Image

Tell 'em Babs is 'ere...

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
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 much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
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]

Image Edited by the Author.

 
http://www.SilverNova.co.uk


-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
12th October, 2007 at 21:01:22 -

Yeah, just the one event action! Thank you!

 
Image

Tell 'em Babs is 'ere...
   

Post Reply



 



Advertisement

Worth A Click