#3.3 Upgrades: Attack Script



When the player reaches upgrade level 2, the player upgrade script enables him to shoot a laser projectile at enemies by pressing (B) or [J]. 


For this purpose, the script triggers a launch projectile function at the appropriate upgrade level, which changes the sprite of the projectile and its flight direction depending on the player's line of sight.


Like the player upgrade script, the player attack script is activated in the logic of each scene as soon as the player touches colission group one.


Get GB Space Jump -2.0

Leave a comment

Log in with itch.io to leave a comment.