A few newbie scripting questions
Posted: Sat Mar 10, 2018 6:05 am
Hi everyone, and thanks to the creator for a great tool.
So, I'm having a few questions, that I'm having a hard time figuring out, and I hope I might be able to get some help here
Context: My game is a 2D top down-ish game.
Question 1: How to change the cursor to something else when hovering over a "Usable" person with a conversation?
I can use the "Reticle" on the selector, but that just puts a sprite on top of the character (which also stays during the conversation, which isn't wanted) - Is there an event or some interface I can implement to get information about this? I guess something like OnUse, just before that.
Question 2: Is it possible to register a click on something "Usable" when you're too far away. Then by script walk there and trigger that conversation
I can't seem to find any event for this. Of course I will take care of the walking by myself in my own code, but first I quess I need some kind of event like OnUseTooFarAway(Transform actor) or something like that, and then save the information and trigger it manually when my character has walked there?
That's my questions for now. It's a pleasure to work with the dialogue system so far!
So, I'm having a few questions, that I'm having a hard time figuring out, and I hope I might be able to get some help here
Context: My game is a 2D top down-ish game.
Question 1: How to change the cursor to something else when hovering over a "Usable" person with a conversation?
I can use the "Reticle" on the selector, but that just puts a sprite on top of the character (which also stays during the conversation, which isn't wanted) - Is there an event or some interface I can implement to get information about this? I guess something like OnUse, just before that.
Question 2: Is it possible to register a click on something "Usable" when you're too far away. Then by script walk there and trigger that conversation
I can't seem to find any event for this. Of course I will take care of the walking by myself in my own code, but first I quess I need some kind of event like OnUseTooFarAway(Transform actor) or something like that, and then save the information and trigger it manually when my character has walked there?
That's my questions for now. It's a pleasure to work with the dialogue system so far!