On Screen button with Proximity Selector
Posted: Wed Jan 09, 2019 6:08 am
Hey all!
Been searching quite a bit but I cant seem to find the right answer and must be doing something wrong.
So I put the proximity selector on my player and a usable component on an NPC. Things are working great and the conversation starts when the player is in the right proximity and presses spacebar.
Since this is going mobile I want to have the same effect but with an onscreen button. I tried using the "Enable Touch" function and create a touch area but this doesn't seem to work at all. I might misunderstand the touch area system even though it seems pretty straight forward.
so in short:
1. Player has proximity selector
2. NPC has usable component and a On Use Trigger
3. Spacebar as current trigger for On Use to start the conversation.
4. I want to get the touch area to work and have a touch in this area as the trigger.
I'm fairly new to the dialogue system but i'm loving it so far.
Any help would be greatly appreciated
Been searching quite a bit but I cant seem to find the right answer and must be doing something wrong.
So I put the proximity selector on my player and a usable component on an NPC. Things are working great and the conversation starts when the player is in the right proximity and presses spacebar.
Since this is going mobile I want to have the same effect but with an onscreen button. I tried using the "Enable Touch" function and create a touch area but this doesn't seem to work at all. I might misunderstand the touch area system even though it seems pretty straight forward.
so in short:
1. Player has proximity selector
2. NPC has usable component and a On Use Trigger
3. Spacebar as current trigger for On Use to start the conversation.
4. I want to get the touch area to work and have a touch in this area as the trigger.
I'm fairly new to the dialogue system but i'm loving it so far.
Any help would be greatly appreciated