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"

Alternate between multiple "Draw Texture" nodes

Hey,

I am trying to find a way to alternate between different "Draw Simple Texture" nodes every second or so, but I can't get it to work. I have tried using Multigates with delay, but that didn't work. I have also tried Flipflop with delay, which didn't work. I tried using a timeline, but that didn't work either. I don't know if I did something wrong or if I am using the wrong approach here. Here's a pic of my BP at the moment: alt text

At the moment, the texture switches constantly (I'm guessing every frame), which of course is not what I want to achieve. Any tips would be appreciated.

Thanks in advance, Florian

UPDATE: I have managed to solve this for alternating between 2 "Draw Texture" nodes, but I still need to find a solution for switching between the three at the top of the tree. Here's a pic of the 2-node solution: alt text

Product Version: Not Selected
Tags:
hudbp.jpg (97.5 kB)
twotexturebp.jpg (51.4 kB)
more ▼

asked Jul 21 '14 at 08:30 AM in Blueprint Scripting

avatar image

FlowDE
35 8 8 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

So I answered this myself now, sometimes the most simple answer is the one you don't think of. I just made a bool for every draw texture and used a bunch of Branches to differentiate them, here's my solution:

alt text

Maybe someone else can use this too ;)

finalhud.jpg (115.9 kB)
more ▼

answered Jul 21 '14 at 02:10 PM

avatar image

FlowDE
35 8 8 10

avatar image Airner Sep 18 '14 at 08:25 PM

That is very good, do you think there is a different way to replace the branches with one nod? I need to do this with 200+ textures and it sound like a massive pain to me to set up that many branches. There must be a simpler solution :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

You can do it with a single "Draw Simple Texture" node.

Create a new int variable named "TextureNo".

Create a new variable called "Textures", type "Texture2d" in the search bar where you pick variable type (int/float/string). Make it into an array. Set the texture2Ds you want as the default values.

Use this array in the blueprint and attach a get node to it. You supply the "TextureNo" as your index.

Add a timeline, add an event track. The event track should fire every .5 seconds (or some other frequency you wish). Turn on Autoplay and Loop features. Fire the timeline with a "Begin Play" node. Use the timeline to update the TextureNo variable.

That's all.

Let me know if you can't figure it out, I can post some screenshots.

more ▼

answered Sep 19 '14 at 10:17 PM

avatar image

alperenakyuz
2k 62 24 110

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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