|
Post by david911 on May 3, 2022 15:53:04 GMT
Im trying to get my lives updated. It updates in the background but doesn't display the change from 3 to 4. I know my code is a bit messed up, im adding 1 to lives twice, im just testing atm, and ill strip it down ect later when i collect the extralife, and i die, then it changes to 4.. hmmmm. any ideas?
My event GAME INT: is setting the lives = 3
////////////////Player Event
DETECTOBJ ; IF OBJ <> 255 ; BEEP 25 ; GET OBJ ; IF OBJ = 2 ; LET B = 2
ENDIF
ADD 1 TO LIVES
BEEP 99
ENDIF
ENDIF
/////////////Loop1
IF COLLIDE OBJ2
ADD 1 TO LIVES AT 1 12
SHOWLIVES
ENDIF
///EDIT, i managed to solve this now with a DISPLAYLIVES and 0 not SHOWLIVES duh!
|
|
|
Post by Packobilly on May 4, 2022 10:30:08 GMT
IF OBJ=2
ADD 1 TO LIVES AT 1 12
DISPLAY LIVES
ENDIF
Try this. I would include this lines into the event PLAYER
|
|