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 the pickup_parent is obviously amazing!

I was wondering if anyone could help me with the 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 the pickup_parent script from the Content Example

Does anyone have an idea?

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

Hey Penhoat,

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

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

Ben Halliday

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 the Components tab in your Blueprint, you can use the Add Component dropdown in the Components panel to add these. Put one in your Blueprint and it will be accessible in your EventGraph and appear in the Variables section of the My Blueprint panel.

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