Hello.
I want to animate the ball breaking every time it hits a block, like in the video image.
Is this the correct way to handle the event?
Setting an object variable on the block
animation number add 1 on collision
Hello.
I want to animate the ball breaking every time it hits a block, like in the video image.
Is this the correct way to handle the event?
Setting an object variable on the block
animation number add 1 on collision
The idea is fine, but you’d also need to have an event that deletes the peg when it reaches the final animation.
Also, it would be more efficient to check for collision first, and then as a sub event have the Repeat for each Breakable_Pegs
. The repeat will then only iterate over the pegs involved in a collision with the ball.