How to make a text that only show when the Player Character go near a specific object?
GamesIT
Member Posts: 22
Hi, all ! Yeah, that my question. How to make a text that only show when the Player Character is nearr a specific object? Here is the example: When the Player Character approaching a door, a text show "Press (F) to open the door" or "The door is locked". Please answer this . I'm really need it for my Game! Thanks
Best Answers
-
sebmacfly Posts: 1,018If your actor overlaps or collide with another, behavior display text "your text" otherwise, Display text ""
-
KevinCross London, UKPosts: 1,894Otherwise and Else mean the same thing, although I prefer the term Else, it's more programmy.
Answers
The other way involves maths equations to check the players x and y and rules that you have to figure out based on either the doors x and y.
I am doing the overlaps or collides rule at the moment and using the collision shape as a circle - working a treat
Totally backing up @sebmacfly - just maybe if you want a notification before the door - give the door some transparent area to trigger it.
Cheers, M@
It might give the help you need
Lump Apps and My Assets