The Daily Click ::. Forums ::. Klik Coding Help ::. Making a 1 button press have multiple uses??
 

Post Reply  Post Oekaki 
 

Posted By Message

JetpackLover



Registered
  01/03/2007
Points
  212
6th March, 2007 at 11:53:55 -

I know it has something to do with alterable values, but I think I'm doing it wrong. I'm trying to rotate around a circle like this "http://img265.imageshack.us/img265/7879/circlesja9.gif" with just a single button press, I have been using Visible, and Invisible to try and make this work. I have the 4 circles, and the 4 invisible flashing circles under it, and I wanted to make them reappear, as you tap Q, so it goes around counter clockwise, but I don't know how to make 1 button do more than 1 action.


 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


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!
6th March, 2007 at 12:11:45 -

Basically you have to seperate each movement and condition.

So you could say

If Alterable value of 'Red' = 1
+ While user is pressing 'Q'


Then, make "Red" invisible and purple visible

Or whatever you want it to do... I don't quite follow what you want exactly, but hopefully you can follow what I mean at least?

Then you can 'negate' actions too, so if you NEGATE "user is pressing right" then the event is obviously going to be executed until the user presses that button, etc. To negate an action, right click the event and select negate

Image Edited by the Author.

 
http://www.SilverNova.co.uk


Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
6th March, 2007 at 12:16:33 -

Right. Use an alterable value or a counter to determine what step of the circle you're on, and use that value as a condition along with the button press.

i.e.
+ "Q" is pressed
+ value("circle") = 0
->Flash circle 1
-> Set value("circle") to 1.

Make sure that the events are in opposite order, with the last circle first. A button can do more than one action if there are events with different preconditions that include that button press.

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames

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!
6th March, 2007 at 12:18:46 -

(As I couldn't edit my last post...)

...

So if you want a button to do more than one action, you can either set alterable values (e.g. Red = 1) while the user is pressing a button, and change the alterable value back (e.g. Red = 0) when they aren't (negating). Then all you need is events that say "if alterable value of Red = 1" then do this... etc.

Though you can just use the "while user is pressing a button" and put all the conditions in one event, if you get what I mean? Instead of setting alterable values. That is, if what you're doing allows you to do so :S

 
http://www.SilverNova.co.uk


JetpackLover



Registered
  01/03/2007
Points
  212
6th March, 2007 at 12:20:28 -

Imagine you are using a 360 controller, and the left trigger makes the blue selector circle go left, and the right trigger makes it go right. I'm trying to use this for a ability equipping interface. Whatever the circle is stopped on is what item you have equipped. Of course this is not the final version of it just the basic form.

I got it to flash for a bit, but than it just disappears, and than when I tap it again, it makes another visible. It almost works...

Image Edited by the Author.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
6th March, 2007 at 13:06:41 -

Something like this, perhaps?

http://suisai.sitesled.com/bloopetyfloop.cca

 
n/a

JetpackLover



Registered
  01/03/2007
Points
  212
6th March, 2007 at 13:13:43 -

yeah exactly like that omg thanks!! I'm going to study up exactly how you did it, and hopefully I will learn how.

Btw those circles you drew are top notch on the unique styleO meter!!

Image Edited by the Author.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
6th March, 2007 at 13:37:51 -

Haha, okay

Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click