Celebrate completing the level
by shooting Confetti from the flag
108 Add a new Sprite object to the Level Folder
110 Choose the Confetti image from the folder "Other"
Then select Import from Sprite Strip
111 Name the animation Idle
112 Add the Bullet Behaviour to the Confetti.
So we can shoot it in different directions.
113 Add the Confetti sprite to the Temp layout.
Adjust the Bullet properties as shown:
114 Create a new Event Sheet for the Confetti
115 Code the Confetti logic
Creates a confetti object on the level layer at the position of the checkpoint flag.
Each Confetti square moves at a random angle
Each Confetti square moves at a random speed
Each Confetti square is a different size
Each Confetti square is a different colour
Create Confetti Function:
Calls the Make Confetti Function
System waits a quarter of a second
Calls MakeConfetti Function again
Note: If Confetti goes outside of layout it is destroyed.
116 Include Confetti in your evLevel1 Event Sheet