Have an animation where the objects collides?

I’d like to have the code if that’s possible :slight_smile:
[import]uid: 27760 topic_id: 36333 reply_id: 336333[/import]

Hi @MDVgameStudios… You’ve asked a question that is way to broad in scope to answer. There are dozens of ways of playing an infinite number of animations. Without knowing anything about your app/game, its artwork, how you’re planning on doing things to even take a wild guess.

Do you have two space ships that are hitting and want an explosion? Do you have two cars that run into each other and you want to play a scripted animation of a wrecking car? The choices are endless. Narrow down the scope of your question and lets see what the community can do for you.
[import]uid: 199310 topic_id: 36333 reply_id: 144347[/import]

Ok, @Rob Miracle. I’m my game there is a bird. You have to tap anywhere on the screen, and the bird will move exactly where you tapped. There’s a ground: if the bird hits the ground, it should remove and it should appear an animation on the point of the ground that it hit.
That’s my game :slight_smile:
i would have liked to know how to play an animation where the bird hit the ground
Thanks in advance [import]uid: 27760 topic_id: 36333 reply_id: 144422[/import]

Yes, of course you can do this. My game has a similar events, like when a glass hits the ground, it shatters and I play that animation.

In the collision handler for your bird, you need to simply launch the animation you want to play when it collides with the ground object at that collision location, and dispose of your current bird animation as well. [import]uid: 58455 topic_id: 36333 reply_id: 144440[/import]

Hi @MDVgameStudios… You’ve asked a question that is way to broad in scope to answer. There are dozens of ways of playing an infinite number of animations. Without knowing anything about your app/game, its artwork, how you’re planning on doing things to even take a wild guess.

Do you have two space ships that are hitting and want an explosion? Do you have two cars that run into each other and you want to play a scripted animation of a wrecking car? The choices are endless. Narrow down the scope of your question and lets see what the community can do for you.
[import]uid: 199310 topic_id: 36333 reply_id: 144347[/import]

Ok, @Rob Miracle. I’m my game there is a bird. You have to tap anywhere on the screen, and the bird will move exactly where you tapped. There’s a ground: if the bird hits the ground, it should remove and it should appear an animation on the point of the ground that it hit.
That’s my game :slight_smile:
i would have liked to know how to play an animation where the bird hit the ground
Thanks in advance [import]uid: 27760 topic_id: 36333 reply_id: 144422[/import]

Yes, of course you can do this. My game has a similar events, like when a glass hits the ground, it shatters and I play that animation.

In the collision handler for your bird, you need to simply launch the animation you want to play when it collides with the ground object at that collision location, and dispose of your current bird animation as well. [import]uid: 58455 topic_id: 36333 reply_id: 144440[/import]

Hi @MDVgameStudios… You’ve asked a question that is way to broad in scope to answer. There are dozens of ways of playing an infinite number of animations. Without knowing anything about your app/game, its artwork, how you’re planning on doing things to even take a wild guess.

Do you have two space ships that are hitting and want an explosion? Do you have two cars that run into each other and you want to play a scripted animation of a wrecking car? The choices are endless. Narrow down the scope of your question and lets see what the community can do for you.
[import]uid: 199310 topic_id: 36333 reply_id: 144347[/import]

Ok, @Rob Miracle. I’m my game there is a bird. You have to tap anywhere on the screen, and the bird will move exactly where you tapped. There’s a ground: if the bird hits the ground, it should remove and it should appear an animation on the point of the ground that it hit.
That’s my game :slight_smile:
i would have liked to know how to play an animation where the bird hit the ground
Thanks in advance [import]uid: 27760 topic_id: 36333 reply_id: 144422[/import]

Yes, of course you can do this. My game has a similar events, like when a glass hits the ground, it shatters and I play that animation.

In the collision handler for your bird, you need to simply launch the animation you want to play when it collides with the ground object at that collision location, and dispose of your current bird animation as well. [import]uid: 58455 topic_id: 36333 reply_id: 144440[/import]

Hi @MDVgameStudios… You’ve asked a question that is way to broad in scope to answer. There are dozens of ways of playing an infinite number of animations. Without knowing anything about your app/game, its artwork, how you’re planning on doing things to even take a wild guess.

Do you have two space ships that are hitting and want an explosion? Do you have two cars that run into each other and you want to play a scripted animation of a wrecking car? The choices are endless. Narrow down the scope of your question and lets see what the community can do for you.
[import]uid: 199310 topic_id: 36333 reply_id: 144347[/import]

Ok, @Rob Miracle. I’m my game there is a bird. You have to tap anywhere on the screen, and the bird will move exactly where you tapped. There’s a ground: if the bird hits the ground, it should remove and it should appear an animation on the point of the ground that it hit.
That’s my game :slight_smile:
i would have liked to know how to play an animation where the bird hit the ground
Thanks in advance [import]uid: 27760 topic_id: 36333 reply_id: 144422[/import]

Yes, of course you can do this. My game has a similar events, like when a glass hits the ground, it shatters and I play that animation.

In the collision handler for your bird, you need to simply launch the animation you want to play when it collides with the ground object at that collision location, and dispose of your current bird animation as well. [import]uid: 58455 topic_id: 36333 reply_id: 144440[/import]