Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Nickydude on Sun 04/01/2009 16:30:30

Title: Dialogue with a hotspot
Post by: Nickydude on Sun 04/01/2009 16:30:30
Is it possible to use Monkey Island style dialogue with a hotspot instead or a character, lie a picture that's part of the backdrop?
Title: Re: Dialogue with a hotspot
Post by: Akatosh on Sun 04/01/2009 16:34:15
Sort of. Just put an invisible character at the hotspot and have it speak.
Title: Re: Dialogue with a hotspot
Post by: Nickydude on Sun 04/01/2009 16:54:10
Wouldn't the invisible character have to be the same size as the hotspot so the player can click on it?
Title: Re: Dialogue with a hotspot
Post by: Akatosh on Sun 04/01/2009 17:02:42
No. You can still process clicks on the hotspot - you only need the character to display the speech.
Title: Re: Dialogue with a hotspot
Post by: Nickydude on Sun 04/01/2009 17:09:14
Ahh right, thanks Akatosh. :)
Title: Re: Dialogue with a hotspot
Post by: Trent R on Mon 05/01/2009 04:10:48
Just remember to set the Character's clickable property.

~Trent
Title: Re: Dialogue with a hotspot
Post by: Nickydude on Mon 05/01/2009 12:22:18
There was no need to Trent, I imported a 1 pixel image for the character so it was literally invisible!
Title: Re: Dialogue with a hotspot
Post by: Khris on Mon 05/01/2009 14:54:02
Sooner or later someone will click it ;)
Perhaps not, but doing things correct from the start is important when scripting or programing.
Title: Re: Dialogue with a hotspot
Post by: Dualnames on Mon 05/01/2009 18:36:28
And if you set pixel perfect click detection to false someone will find it way easier(instead of searching one pixel).
Title: Re: Dialogue with a hotspot
Post by: Nickydude on Mon 05/01/2009 19:02:54
QuoteAnd if you set pixel perfect click detection to false someone will find it way easier(instead of searching one pixel).

I think you misunderstand (unless I misunderstand your response  ;D)

The 1 pixel is only to create an invisible character that nobody will see or interact with, it's just there so the player can talk to a hotspot. :)
Title: Re: Dialogue with a hotspot
Post by: Dualnames on Mon 05/01/2009 19:06:04
I didn't. If you have an overhotspot label and have set pixel detection click to a rectangular check the player will find it easier.
Title: Re: Dialogue with a hotspot
Post by: Khris on Mon 05/01/2009 20:59:38
If the sprite is just one pixel big, it doesn't matter if perfect click detection is activated or not, because there's no transparent border around the "sprite". (As long as the pixel isn't transparent, of course, but I assume Nickydude chose the color of the background pixel the character's positioned at.)
Title: Re: Dialogue with a hotspot
Post by: Nickydude on Mon 05/01/2009 21:03:30
The pixel wasn't transparent, it was the same colour as where I placed it on the background. Thanks for the info though guys. :)
Title: Re: Dialogue with a hotspot
Post by: Nickydude on Tue 06/01/2009 17:10:31
I apologise to all for not grasping the info you guys are giving me as the way I have, with the 1 pixel character, works. What you guys are really saying is that dialog should always be with another character and any 'workarounds' probably won't work as they should?
Title: Re: Dialogue with a hotspot
Post by: Khris on Tue 06/01/2009 17:56:54
Like was mentioned, making the character not clickable will effectively exclude them from the player's gaming environment, making unforeseen stuff less likely to happen.

When I started programming, I also focused on getting things to work, but making them foolproof is at least equally important, if not more. Even if no stranger might ever look at or use the code, it makes debugging way easier. And there's one stranger who might get a look at it after all: you, a few months from now. ;)
Title: Re: Dialogue with a hotspot
Post by: Nickydude on Tue 06/01/2009 18:12:51
So making it non clickable will in effect make it 'invisble' to the game, even if the player clicked on it?
Title: Re: Dialogue with a hotspot
Post by: monkey0506 on Tue 06/01/2009 18:27:52
To clarify, non-clickable only does just that...it makes the Character fail to respond to any clicks...the clicks would pass directly through the Character.

Think in The Secret of Monkey Islandâ,,¢ in the corner with the Citizen of Mêlée Island and the Men of low moral fibre...there's lots of NPCs walking around, but they're practically ghosts. You can't click on them, your clicks go right through them. Now in AGS terms they would also have their Character.Solid property set to false which is why you can walk through them...but as far as the interactions go that's what Character.Clickable controls.
Title: Re: Dialogue with a hotspot
Post by: Nickydude on Tue 06/01/2009 18:32:53
Ahh, got it now, thanks guys! :D