0
Answered

Pop up message "Pick up Press 'E' ''

Sam Leitch 4 months ago in Inventory updated by Marti (Lead Developer) 4 months ago 2

Recomendations on getting a prompt to appear when the option to pick something up is within range.

Am i missing a vital step somewhere? or is it just a check box that i have managed to overlook.

Kind regards,

Sam

Unity version:
2019.3.13
Game Creator version:
latest
+1

There are many ways to do this.

- you could tag the object with a tag called pickup

- Create a global variable gameObject called pickup

- Then you could put a trigger on the player, move it up and a little forward and use the trigger option tag enter

- Then create an action from that trigger floating message and use your global variable here pickup That will display the message above or where you like on the object you are near to-.

You could then have many tags and variables and use conditions to check what tagged object your trigger collids with.

or the reverse and have each object have there own trigger where the player can walk into which will then displa the message.

+1
Answered

Another way to do this is using a Hotspot (I prefer this method). There's an option called "Hint", which instantiates/shows a game object when the Player approaches the interactible object and hides it when the player moves out of reach.

This game object can be a Canvas set in World Space with an Image and the [E] Text. You could even add some particle effects to highlight it better.