Create (and destroy) an army of enemies using only a half page of code
1) Add Background
- Add new object from asset store (BlackSpace)
- Create a new layer "Background (Space)" and move it to the bottom of layers
- Create an instance of the BlackSpace object at 0,0 on the background layer. - Resize object to 800x600
- Install the new extension (Vertical Parallax and Horizontal Parallax)
- Apply both behaviors to the background object
2) Add Player
- New object from asset store (BluePlayerShip2)
- Apply behavior to player (Top Down Movement)
- Create an instance of the player object in the middle of the screen
- Keep the camera centered on the player
3) Add Enemy
- New object from asset store (SwimmingEnemy)
- Add Pathfinding Behavior to Object
- Create an instance of an enemy object in the middle of the screen
- Make the enemy move in a random direction
4) Delete enemy when you touch them
- Player in collision with the enemy, delete the enemy object
5) Now make them explode when they die!
- Add new object "Energy Explosion" from the asset store
- Create 3 particle objects where the enemy died
6) Create an army of enemies
- Install new extension (CreateMultipleCopiesOfObject)
- Create 4 rows and 5 columns of enemies, 100 pixels between enemies (20 enemies)
7) Add text to show the number of enemies remaining
- Create a Text object
- Update Text with the Count of enemy objects
8) Create an arrow to show the closest enemy
- Add new object "Green Arrow" from the asset store
- Create a condition to Pick the closest enemy object
- Put an arrow object around Player object facing the direction of the closest enemy
- Rotate arrow to face the closest enemy
9) Only show the arrow when less than 10 enemies left
- Add a condition to check the Count() of enemies
- Hide Green Arrow at beginning of the game
- Show Green Arrow when there are less than 10 enemies 10) Add Glow Effect to Base Layer
Status | Released |
Platforms | HTML5 |
Author | Victris Games |
Made with | GDevelop |
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.