Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gdevelop5:tutorials:space-shooter:8-powerups [2020/11/23 10:15] dkarakay |
gdevelop5:tutorials:space-shooter:8-powerups [2021/02/14 23:09] (current) mannhb [Testing out] |
||
---|---|---|---|
Line 12: | Line 12: | ||
6. [[gdevelop5: | 6. [[gdevelop5: | ||
7. [[gdevelop5: | 7. [[gdevelop5: | ||
- | 7. [[gdevelop5: | + | 8. [[gdevelop5: |
+ | 9. [[gdevelop5: | ||
+ | 10. [[gdevelop5: | ||
+ | 11. [[gdevelop5: | ||
+ | 12. [[gdevelop5: | ||
+ | 13. [[gdevelop5: | ||
- | <note tip> | + | <note tip> |
## Adding powerups | ## Adding powerups | ||
- | We will add two objects called **" | + | We will add two objects called **" |
{{ : | {{ : | ||
- | Then create an object group called **" | + | Then create an object group called **" |
- | {{ : | + | {{ : |
## Animating the player | ## Animating the player | ||
- | We are using animations to change the player' | + | We are using animations to change the player' |
{{ : | {{ : | ||
Line 34: | Line 39: | ||
## Giving extra health to the player | ## Giving extra health to the player | ||
- | We are ready to open **" | + | We are ready to open the **" |
<note tip> You can add a comment to classify your events.</ | <note tip> You can add a comment to classify your events.</ | ||
Line 44: | Line 49: | ||
{{ : | {{ : | ||
- | Go to the **" | + | Go to the **" |
- | Create a new condition for detecting the collision between the Player and the PowerupShield objects. Then, e | + | <note tip> We are going to use this condition to prevent getting damaged while using the powerup.</ |
+ | |||
+ | {{ : | ||
+ | |||
+ | In the end, you should see: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Create a new condition for detecting the collision between the **Player** and the **PowerupShield** objects. Then, add an action to change the animation of the player. Select Player, and choose **" | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Then, add some further actions to **set " | ||
+ | |||
+ | <note tip> We will use this timer to determine the usage of powerup in the next steps.</ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Add a new condition to check whether the **" | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Finally, we are going to set " | ||
+ | |||
+ | {{ : | ||
## Testing out | ## Testing out | ||
- | Before testing | + | Before testing |
- | {{ : | + | {{ : |
- | Run the game. Now you can see the meteors | + | Then, open the scene view and drag and drop the powerup objects to the scene. We are ready to run the game. Now you can see the powerups |
- | {{ : | + | {{ : |
+ | ##Next step | ||
+ | [[gdevelop5: | ||