The Daily Click ::. Forums ::. Klik Coding Help ::. How to create different actions from clicking the same button.
 

Post Reply  Post Oekaki 
 

Posted By Message

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
18th March, 2012 at 18/03/2012 07:27:01 -

I made this example for somebody on the clickteam forums.

Thought it might be useful here too.

http://www.whenthereisnoroominhellthedeadwalktheearth.com/MMF/chrisburrows_delaylesson.mfa

Image

Edited by Chris Burrows

 
n/a

infinitum3d



Registered
  03/03/2012 22:18:24
Points
  66
19th March, 2012 at 19/03/2012 13:07:40 -

Excellent post Chris!

And just to add my 2 cents, one way of working around this is to use Alterable Values. For example;

Always
~If Alterable Value A = 1, set Inventory Visibility to Make Object Reappear
~If Alterable Value A = 0, set Inventory Visibility to Make Object Invisible

User Clicks with Left Button
~If Alterable Value A = 1, set Alterable Value = 0
~If Alterable Value A = 0, set Alterable Value = 1

Edited by infinitum3d

 
n/a

nim



Registered
  17/05/2002
Points
  7234
19th March, 2012 at 19/03/2012 13:44:44 -

That's quite a lot of effort you put into that one example. Hope it helped

 
//

nivram



Registered
  20/07/2006
Points
  171
19th March, 2012 at 19/03/2012 14:51:26 -

I agree nim. Seems as though Chris's example is more appreciated on TDC.

Marv

 
458 MMF2 & CTF 2.5 examples and games

http://www.castles-of-britain.com/mmf2examples.htm

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
19th March, 2012 at 19/03/2012 18:56:40 -

Pretty good example. I've came up with my own solution to this problem as well. My method is just having the button toggle a flag. Then all you have to do is have the Flag On action do something and the Flag Off action do something. It's really simple and it works

 
n/a

Neuro

Ludologist

Registered
  29/10/2006
Points
  437

Game of the Week WinnerVIP MemberI'm on a BoatPokemon Ball!
19th March, 2012 at 19/03/2012 21:15:21 -

This information is vital and you get mad kudos for using Bio Menace

 
n/a
   

Post Reply



 



Advertisement

Worth A Click