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"

Display image on screen when an item is collected

When a player picks up a page, the page is then displayed on screen for them to read. I was able to make it so the player picks up a page and it then disappears but I cant figure out how to display it on screen.

You can probably tell my knowledge of blueprint is very basic, so if anyone could point me in the right direction of what I should be doing it would be greatly appreciated, thanks

Product Version: Not Selected
Tags:
more ▼

asked Mar 16 '15 at 05:39 PM in Blueprint Scripting

avatar image

Grubzyy
1 1 2 2

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

1 answer: sort voted first

Well I assume you either have a picture of the text or just plain text.

Create a widget either accepting a text or an image as input (by creating a variable which you have to make editable and also check the box "Expose on Spawn". This will provide an additional pin when creating this widget.)

You can then on pickup of your actor display this widget with the new information you received from that actor (it's text or image). I do hope you can keep an reference to that page already. Otherwise just tell me so and I'll cover that as well ;)

Anyway that's already about it. Did you see the videos about the inventory system from epic? That pretty much covers everything you need.

Cheers :)

more ▼

answered Mar 16 '15 at 09:44 PM

avatar image

Erasio
5.9k 291 86 293

avatar image Grubzyy Mar 20 '15 at 04:32 PM

Thanks it worked, and Ive just watched the videos from epic and they helped give me a better understanding of how it works :)

Thank you :D

avatar image tongucci Jul 09 '15 at 09:54 AM

Grubzyy, can you please give the link for the videos from Epic?

avatar image Erasio Jul 09 '15 at 11:00 AM

This is the series in question:

https://youtube.com/playlist?list=PLZlv_N0_O1gZo6zXTHGGSH8gxaA7a_zCt

Though if I saw correctly they released a new umg series very recently.

avatar image Qualitypirate Dec 17 '15 at 05:25 PM

Hi Erasio I've found myself in the exact same place with far less experience than this person...I simply want to add a png to the screens HUD when the character is destroyed. Can you help me please? those tutorials werent helpful at all to me

avatar image Erasio Dec 18 '15 at 01:59 AM

Ok so what you gonna wanna do is create a new widget blueprint.

Inside of it you drag and drop an "image" to the scene and select the image it should display in the details panel.

When your character is destroyed you search for the node "create widget" and select the widget you created, take the blue pin behind that node, pull it out and search for "add to viewport". That should already do the trick.

(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