Download

Playing a character animation when colliding with an object [Paper2D]

Hello, everyone! :slight_smile:

I am very new to Unreal and especially new to the Blueprint system. I am currently creating a very simple 2D game with my friend and we came upon an issue.

In the game, the character runs past pancakes, which work the same way as coins in Super Mario.
When the character then walks through these pancakes, we want the character to play an animation we have made for him.

The issue is, Iā€™m unsure how to make the character know to play that animation when walking through these pancakes.

I tried casting to the pancake blueprint, although that was definetely wrong and I got a couple errors by doing so as I was targeting the wrong actor or something along the lines.
I might have casted incorrectly, although I am unsure.

I was wondering if anyone knew how to make the character know to play a set animation when colliding with a specific object?

Thanks! :smiley: