CLEO Help I really need help with this.

CLEO related
Status
Not open for further replies.

kool

Active member
Joined
Jun 4, 2016
Messages
89
Reaction score
0
How can i make any script running while holding down some key.
I first tryed key_down,then I tryed 0AB0 : key_pressed,then I tryed to make to loop script while i'm holding a button but none of these method works ( or i'm retarded ).
Can somebody tell me " while holding down button " code ?
 

noob213

Active member
Joined
Sep 15, 2017
Messages
88
Reaction score
6
I did not understand very well what he said but
open sanny builder press F12> Cleo 3 Code Library> Virtual Keys codes (for 0AB0)
key_down and 0AB0: key_pressed they are the same

here an example:

Code:
{$CLEO}
0000:

:Noname
wait 0
if 0AB0:   key_pressed 51 // Check if the key is pressed 3
004D: jump_if_false @Noname_2
// your code here

:Noname_2
0002:Jump @Noname
sry bad english
 

kool

Active member
Joined
Jun 4, 2016
Messages
89
Reaction score
0
ik now,thanks for trying to help,but i need code for " Holding " like " check if player is holding a key " or something like that
 
Status
Not open for further replies.
Top