click detection

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

click detection

Post by Arcanor »

I've noticed that dialogues are triggered whenever the mouse UP event occurs. So if I drag the mouse on to an actor, then release it, the dialogue is triggered. Is there an easy way to make it so that the dialogue only triggers on an actual click, i.e. both a DOWN and UP event in quick succession (and at roughly the same screen position)?
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
User avatar
Tony Li
Posts: 21676
Joined: Thu Jul 18, 2013 1:27 pm

Re: click detection

Post by Tony Li »

That'll be easy enough to add. I'll post an updated Selector.cs later today!
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

Re: click detection

Post by Arcanor »

That would be fantastic Tony, thanks (again) so much!
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

Re: click detection

Post by Arcanor »

Did this turn out to be more difficult than you thought in implementing?

I'm just bumping in case it got lost in all the other recent posts. Not rushing you! Enjoy your weekend. :)
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
User avatar
Tony Li
Posts: 21676
Joined: Thu Jul 18, 2013 1:27 pm

Re: click detection

Post by Tony Li »

Doh, thanks for the reminder. I forgot to make it available on the customer download site. It's there now. (If anyone else needs access to any patches or updates, please PM me your Unity Asset Store invoice number.)
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

Re: click detection

Post by Arcanor »

Fantastic, thanks! I'll go download now and report back later today.
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

Re: click detection

Post by Arcanor »

In my preliminary testing just now, it seems to work perfectly. I think this is far superior functionality now.

Thanks again Tony!
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
User avatar
Tony Li
Posts: 21676
Joined: Thu Jul 18, 2013 1:27 pm

Re: click detection

Post by Tony Li »

I appreciate the suggestion. I think it's much nicer this way, too!
Post Reply