Jump to content

Rosming

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Rosming

  1. {$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 1@ 2@ 3@
    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.

×
×
  • Create New...