x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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:

alt text

alt text

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

Product Version: Not Selected
Tags:
unreal.png (190.4 kB)
unreal2.png (81.0 kB)
more ▼

asked Aug 04 '14 at 09:52 PM in Blueprint Scripting

avatar image

Penhoat
6 4 10 15

avatar image Penhoat Aug 05 '14 at 05:42 AM

Does anyone have an idea?

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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.

alt text

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

Ben Halliday

more ▼

answered Aug 05 '14 at 10:36 PM

avatar image Penhoat Aug 07 '14 at 11:13 AM

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?

avatar image Ben Halliday STAFF Aug 07 '14 at 03:12 PM

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.

avatar image Penhoat Aug 07 '14 at 06:04 PM

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

(comments are locked)
10|2000 characters needed characters left

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.

https://wiki.unrealengine.com/SubUV_Particle_%28Tutorial%29

more ▼

answered Aug 05 '14 at 08:01 PM

avatar image

nickpetersonfx
261 6 4 13

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question