Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: tobulos1 on Tue 24/03/2015 17:51:00

Title: [SOLVED] Walk-To hotspot does nothing
Post by: tobulos1 on Tue 24/03/2015 17:51:00
Hi!
I'm having problems walking on a hotspot. The hotspot itself is the ground, and I want to be able to move across it freely. But when I just regularly click on it, it does nothing. I can only use the other commands "Look-At", etc.
I have drawn a walkable area on the ground as well...

Any ideas?

Thanks!
Title: Re: Walk-To hotspot does nothing
Post by: Cassiebsg on Tue 24/03/2015 18:14:51
Am not sure what the problem is, what exactly do you wish to do?

You say you have drawn a walkable area on the ground, are you sure you character is on the walkable area? If he's out of the area, even if it's only a pixel, then he won't be able to move.
try hitting Ctrl+W (shortcut to "teleport" to walkable area) and see if that helps, if it does, then your character is outside the walkable area.

Also, please mention which template you are using, as it's easier to help you out if we know what settings you are working with...
Title: Re: Walk-To hotspot does nothing
Post by: Monsieur OUXX on Wed 25/03/2015 09:51:16
Couldn't it be a problem of the hotspot intercepting and consuming the "walk to" click? I'm not sure, I'm only just suggesting.

Here is the only scenario I can imagine: when you click on the hotspot, the game engine doesn't consider the click a "regular walk-to click" where all it has to do is to make the character walk to those exact coordinates using the pathfinder, but instead it considers it a "hotspot click", which means the engine's task is now to bring the character "as close as possible to that hotspot", using its built-in algorithms. Since the player is already on the hotspot, the engine considers the task is accomplished, and the player doesn't move. Could that make sense?
Title: Re: Walk-To hotspot does nothing
Post by: Cassiebsg on Wed 25/03/2015 15:34:36
Again, that might make sense, depending on which template he's using.
I have a street on my game that is both a hotspot and a walkable area, and I have no such problem (using the default template).
BASS (2 click) template, might give problem, since it's designed to walk when it's NOT on a hotspot...
Title: Re: Walk-To hotspot does nothing
Post by: tobulos1 on Fri 03/04/2015 20:34:16
Sorry for the late reply,

I'm using the Verb-9 template, and if I have a hotspot on the ground (who is also a walkable area), whenever I press on it, my character won't move there. If I remove the hotspot, he walks there perfectly fine.
I hope I made myself more clear, thanks! :)
Title: Re: Walk-To hotspot does nothing
Post by: Cassiebsg on Sat 04/04/2015 00:07:56
I haven't worked with the 9-Verb template, but I have a feeling that Monsieur OUXX is right.

Try doing a if/else condition to check for the choosen active mouse mode to determine which click the engine should process...

If you can't figure it out, maybe someone more experienced than me can help you out with the needed code. ;)

EDIT: Also, check your General Settings -> Character movement... try fiddling with these settings and see if it makes any difference for what you wish to do.
Title: Re: Walk-To hotspot does nothing
Post by: Lasca on Sat 04/04/2015 07:28:25
Depending on what you want the hotspot to do you could try using a region instead of a hotspot.
Title: Re: Walk-To hotspot does nothing
Post by: tobulos1 on Sun 05/04/2015 13:50:27
Quote from: Lasca on Sat 04/04/2015 07:28:25
Depending on what you want the hotspot to do you could try using a region instead of a hotspot.
Solved it, thanks!