How can I use this script to be able to use sprites/flipbooks?

Hello everyone,

I’m looking into pickupable objects. For this I’ve taken a look at Content Example, coins health etc.

Especially pickup_parent is obviously amazing!

I was wondering if anyone could help me with following:

I would like to be able to use this script, but instead of static meshes be able to use sprites/flipbooks since I’m making a 2D game. Anyone able to help me with that?

Would be much appreciated.

BTW: It’s just pickup_parent script from Content Example

Does anyone have an idea?

You could always create a particle system that has sprite/flipbook and set it to repeat at right timing and drop that into world.

Hey Penhoat,

If your Pickup Blueprint has a Sprite component and/or a Flipbook component, you can use Set Sprite and Set Flipbook nodes.

Hope that helps! Let me know if you have any other questions.

Hello,

this is already a great start, however your “paper sprite” and “Paper Flipbook” nodes connected to target. What are they? How do I construct these?

Those are empty Paper Sprite and Paper Flipbook components. If you go to Components tab in your Blueprint, you can use Add Component dropdown in Components panel to add these. Put one in your Blueprint and it will be accessible in your EventGraph and appear in Variables section of My Blueprint panel.

Amazing thanks! I figured rest of EventGraph out. Thanks for help!