Hello! Tell me what to do ... I'm making a game ... My character on the first floor of the walk and jump, then comes up the stairs, up and on the second floor is no longer jumps .. Here is the code ..
IF KEY 1 IF CANGOLEFT LET IMAGE = 0 SPRITELEFT ANIMATE ENDIF ENDIF IF KEY 0 IF CANGORIGHT LET IMAGE = 0 SPRITERIGHT ANIMATE ENDIF ENDIF IF KEY 4 IF LADDERABOVE LET IMAGE = 0 SPRITEUP ELSE JUMP ENDIF ENDIF
Thank you all ..) I had figured out .. Now everything as it should .. Here is the code .. (slightly modified for their purposes)
IF KEY 1 LET PARAMA = DIRECTION ENDIF IF PARAMA = 0 IF CANGOLEFT SPRITELEFT (ANIMATE) ENDIF ENDIF IF KEY 0 LET PARAMA = 1 END IF IF PARAMA = 1 IF CANGORIGHT SPRITERIGHT (ANIMATE) ENDIF ENDIF IF LADDERBELOW ELSE FALL END IF IF KEY 4 IF LADDERABOVE SPRITEUP ELSE JUMP ENDIF ENDIF