CLEO Help On/Off question CLEO

CLEO related
Status
Not open for further replies.

OverLoad

Active member
Joined
Dec 23, 2013
Messages
67
Reaction score
0
Hi!I was reading this
I understood the first part.
But the second part where he makes the Cleo able to go ON/OFF.I didn't understand.
So can anyone please explain the following code to me?Like what each line does and what it means etc.
Code:
thread 'TESTCLEO'

:TESTCLEO_01
wait 0
if
0AB0:   key_pressed 123
else_jump @TESTCLEO_02
0332: set_actor $PLAYER_ACTOR bleeding 1
jump @TESTCLEO_01

:TESTCLEO_02
wait 0
if
0AB0:   key_pressed 122
else_jump @TESTCLEO_01
0332: set_actor $PLAYER_ACTOR bleeding 0
jump @TESTCLEO_01
[/URL]
Thanks :D
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
does this awesome paint help?
g0unSI2.png


So basically it does two checks, if you pressed key XXX then call opcode 0332. If you did not press then jump to a second label, do another check if you pressed key YYY, if yes call opcode 0332, if not jump to the first label. Will run these checks in a loop.
 
Status
Not open for further replies.
Top