#4.2 Enemies: Robot



The robot is another enemy in GB Space Jump. Unlike the blob, the robot moves much faster. Besides, the player can kill it only with the help of a laser projectile. If he jumps on its head, the robot will be compressed, but this will only make it move faster and after some time the turtle will also come out of its shell again.


If the player jumps on the robot from above, the local variable $Robo_hit is set from 0 to 1.


Except for these special features, however, the robot's mechanics are essentially the same as those of the Blob. If the robot touches the player, its upgrade level decreases by one with $Player_Upgrade. The variable $Player_hit ensures that the player has a short reaction time before he can be hit again. This has already been explained in detail for the Blob and can be read there. In addition, the local direction variable $Robo_direction also changes so that he moves in the opposite direction.


The only way to kill the robot is to shoot it with a laser projectile.


As already explained with the Blob, the already mentioned local direction variable $Robo_direction controls whether the robot moves to the left or to the right. However, in this case the actor's sprite and its speed also change, depending on whether the player has jumped on the robot or not.

If the robot does not touch the player, it will change its direction at the specified turning points at the latest.


Get GB Space Jump -2.0

Leave a comment

Log in with itch.io to leave a comment.