Walk to hotspot in look mode - bug?

Started by ThunderStorm, Mon 08/09/2003 11:26:15

Previous topic - Next topic

ThunderStorm

Alright, there's something strange happening in my game:

I have completely replaced the on_mouse_click function to adapt it to my verb-coin interface, but internally the cursor mode is permanently MODE_LOOK. Right-clicking on a hotspot, character or object should only bring up the verb coin GUI, consisting of three buttons. Clicking on a button triggers the corresponding talk, look or use action.

Basically, this works perfectly, but as soon as I set walk-to-points for the hotspots, the player walks there before bringing up the coin, although there is no such command in my script, as right-clicking is only supposed to show the coin, while pressing the look button triggers a look action.

Does anyone have an idea on what might be the problem without me having to post my whole script, which is on another computer?

My guess is that the state of the "walk to hotspot in look mode" is not being saved properly, causing that strange behaviour, could that be checked?

TIA, Thunder

Ghost

have you started the game with the "walk-to" box checked and disabled it later? i had no trouble with checking/unchecking boxes, but at least it would be possible that the option is somehow stored wrongly.

maybe you should export your guis, start a new game and try it all over?

ThunderStorm unlogged

The checkbox was - by default - unchecked when I started the game, then I added the walk-to points and checked 'walk to hotspots in look mode' at the same time and experienced the player character walking when he wasn't supposed to. After un-checking however, the problem still occured.
I'm not sure if that is what caused the problem in the first place. It's quite easy to work around by simply not using any hotspots and moving the player with MoveCharacter etc, but I thought it was worth investigating, as it looks like a problem with that option to me.

Ghost

as a verification test I created a new game, checked the "walk to" box and made one room, created hotspot with  a walk to point,  gave it a "look" response action and tested everything- worked as expected, chara moved to hotspot point when looking at the hotspot.

then i unchecked the walk to box. tested again. now i could look at the hotspot from everywhere- the chara didn't walk to the walk to point.

okay, i had this test with the default sierra type interface.

i imported my own interface into the new game (lucas arts type, much like the one that comes with AGS) and tried the room once more (once unchecked, once checked)- all actions were done just as one would suspect them.

I think there is no bug, but something in your code causes the buggy action. since you wrote the character walks before your GUI coin appears, I suggest you check what happens to your code before your coin appears. the error must happen there somewhere.

hope this helps- good luck!

Pumaman

The only things that can initiate the walk-to are ProcessClick and RunHotspotInteraction. Check your script - you may be unintentially calling one of these when the player clicks.

SMF spam blocked by CleanTalk