Is it possible to combinate two (or several)keys to perform actions?
I mean UP+LEFT KEY -----> JUMP ON THE LEFT
I mean UP+RIGHT KEY-----> JUMP ON THE RIGHT
UP KEY -----> JUMP UP
DOWN KEY -----> GO DOWN
Thanks
Printable View
Is it possible to combinate two (or several)keys to perform actions?
I mean UP+LEFT KEY -----> JUMP ON THE LEFT
I mean UP+RIGHT KEY-----> JUMP ON THE RIGHT
UP KEY -----> JUMP UP
DOWN KEY -----> GO DOWN
Thanks
Yes, just right click on an event and add more conditions.
[events]
* Upon pressing "Up arrow"
+ Repeat while "Left arrow" is pressed
+ (Negate) Repeat while "Right arrow" is pressed
-Jump on the left
* Upon pressing "Up arrow"
+ Repeat while "Right arrow" is pressed
+ (Negate) Repeat while "Left arrow" is pressed
-Jump on the right
* Upon pressing "Up arrow"
+ (Negate) Repeat while "Right arrow" is pressed
+ (Negate) Repeat while "Left arrow" is pressed
-Jump up
* Upon pressing "Down arrow"
- Go down
[/events]
Or similar but...
[events]
* Repeat while "Left Arrow" is pressed
+ Repeat while "Up Arrow" is pressed
+ Only action when event loops
-Jump on the left
[/events]
Thanks a lot! ;)
It's cool the tabel you used to explain the code, how can I make it when I starts a new post? ;)
A little tip, if you hit the "quote" button then you get to see the source of their post.
Read this guide. You can PM me any questions about it.Quote:
Originally Posted by The Thinker
Thanks a lot it is very cool! ;)