Logic Question : Clicking your environment ( RE style )
So I'm new to all of this stuff and I've been trying to figure this out on my own to know avail.
Basically how would I go about making environmental interactions? Think Resident Evil where you click something in the environment and words would pop up?
I used the dialog thing and a trigger zone but i realized that just makes it pop up anytime i walk by it. Then I tried messing with the controller sensor one but couldn't figure that out.
If anyone could help me through this I'd appreciate it! My level is classic survival horror project, I just uploaded it to show off some progress. I'm using it as a testing ground right now and then once i figure out things I'm gonna start from scratch to get it right.
-
Use the grab gadget found in gadgets > inputs. This will trigger when the imp grabs the object the gadget is stuck to.
You may also need to make sure the object is grabbable. Tweak the object and it’s grabbable settings can be found at the bottom of its physical properties tab.
Hope this is helpful :) Peter -
Is there a way to do it by just clicking a button on your controller rather than using the imp? In other words, if there's a computer in the environment I walk up to it and click X then words pop up that say " The computer looks to be out of order"....Along those lines.
So basically how do I get something like that to be triggered by pressing a specific button on my controller. -
Hey,
If you want to do this, the easiest way is to put a trigger zone on the object (e.g. the computer), and set it to detect a tag that you put on the character. In the character's logic, wire the X output of the controller sensor to the Tag, so that it only activates when you press X.
This means the trigger zone output will send out a signal when the character is near and pressing X.
Hope that helps :)
- Liam -
Thank you :)
-
'@mmdev5 - Liam
So I tried it but I think I must be screwing something up. I press X and it pops up but it pops up everywhere in the location and not where the trigger zone is. I set it to detect tag, and i put a tag in the character's logic ( where the control settings and other chips are )...what do i name the tag? is there something I'm screwing up?
Sorry, I'm very new to this as I never even played LBP games either.
Please sign in to leave a comment.