#2.1: UI: Battery Count



The battery counter is meant to show the player the number of batteries he has already picked up. To do this, the actor is pinned to the screen.


Now the whole mechanic is simply that the sprite changes depending on the $Player_Battery variable state per update. 


So for the values 0 to 9 it looks like this:


Only with ten batteries the logic changes. Since the player should get ten batteries exchanged for one life point, the sprite is now changed again after the display of 10 batteries, in order to make the additional life point visually clear, which is credited to the player in the background. Afterwards $Player_Battery is reset to 0 and the whole fun starts again.


Also in this actor you can find the mechanic, which brings the player back to the start mission screen after a knockout, or gives him a game over, if he has only one life point left. The player is then knocked out when he is hit by a monster on upgrade level 1 (the Mini Gameboy) and $Player_Upgrade drops to 0.


In any case, this actor also indicates the damage taken once again by flashing a sequence of hide and show commands at the player. 


Get GB Space Jump -2.0

Leave a comment

Log in with itch.io to leave a comment.