#3.3 Upgrades: Attack Script
GB Space Jump -2.0 » Devlog
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
GB Space Jump -2.0
A Super Mario clone prototype in GB Studio 2.
More posts
- #3.1 Upgrades: PowerupsApr 08, 2022
- #2.1: UI: Battery CountApr 08, 2022
- #5.5 Scenes: Abyss and JetpackApr 08, 2022
- #3.2 Upgrades: Upgrade ScriptApr 08, 2022
- #2.2: UI: Upgrade DisplayApr 08, 2022
- #4.1 Enemies: BlobApr 08, 2022
- #4.2 Enemies: RobotApr 08, 2022
- #4.3 Enemies: WormApr 08, 2022
- #5.1 Scenes: GeneralApr 08, 2022
Leave a comment
Log in with itch.io to leave a comment.