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"

Trying to draw same image at different locations

I have an array of actors called Consumable which stores whatever the player picks up. Im working on the HUD now for the player and for every item on that array I want to draw a potion in my inventory HUD. My problem is that it's not drawing copies of the image even though I use a foreach loop, insteand its sliding the one potion image across the screen so I have a logic error here.

My blueprint: alt text

Product Version: Not Selected
untitled.png (250.3 kB)
more ▼

asked Oct 19 '14 at 11:35 PM in Blueprint Scripting

avatar image

185 12 15 26

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

1 answer: sort voted first

Try setting Whichslot to 0 before the foreach loop begins.


You could set it to 0 (or wherever you need to start drawing the images) on the False node of (if Index != 0)

Anyway you do not need Whichslot, you can simply multiply the current index with 50 which will give you the same result. Unless ofcource, you intend to start drawing it on X greater than 0.

more ▼

answered Oct 20 '14 at 03:25 AM

avatar image

3.4k 154 52 271

avatar image JakeOfSpades Oct 20 '14 at 03:39 AM

Thanks man, I knew it was simple logic error.

avatar image mindfane Oct 20 '14 at 07:39 AM

I must admit, it took me 15 minutes to figure that out ;)

PS: Please mark the thread as solved.

(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