Jump to content

CLEO Need help


Rosming
 Share

Recommended Posts

{$CLEO .cs}
0000: NOP

:label1
wait 0 ms
if and 
0AB0: pressed_button 82 //--------- R key +
0AB0: pressed_button 49 //--------- 1 key
004D: jump_if_false @label1
0002: jump @label2

:label2
wait 0 ms 
0247: request #VICECHEE
0002: jump @label3

:label3
0248: request_true #VICECHEE
004D: jump_if_false @label1
0002: jump @label4

:label4
04C4: create_coordinate 1@ 2@ 3@ from_actor $PLAYER_ACTOR offset 0.0 3.0 0.0
00A5: 0@ = create_car #VICECHEE at [email protected] [email protected] [email protected]
0229: set_car 0@ color_to 0 0
0002: jump @label5

:Label5
if
0AB0: pressed_button 13 //--------- Enter
004D: jump_if_false @label5a
0002: jump @label6

:label5a
if
0AB0: pressed_button 39 //--------- Right Arrow
then
03F3: get_car 0@ color 4@ 5@
0229: set_car 0@ color_to 4@ += 1 5@
end 
004D: jump_if_false @label5b
0002: jump @label5

:label5b
if
0AB0: pressed_button 37 //--------- Left Arrow
then
03F3: get_car 0@ color 4@ 5@
0229: set_car 0@ color_to 4@ -= 1 5@
end      
004D: jump_if_false @label5
0002: jump @label5

:label6
0249: request_release #VICECHEE
01C3: remove_references_to_car 0@
0002: jump @label1 






 

Can someone please tell me what I'm doing wrong here I trigger the car spawn but then game freezes any help would be nice.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...