Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Radiant on Thu 18/03/2004 15:27:02

Title: Hotspots and Talk mode
Post by: Radiant on Thu 18/03/2004 15:27:02
Can I prevent EGO from walking to a hotspot's walkto point in TALK mode? (after all, he can shout to the hotspot from a distance)

Title: Re:Hotspots and Talk mode
Post by: strazer on Thu 18/03/2004 16:10:28
Yes, the latest beta has a new variable:

game.auto_use_walkto_points
Default 1; set to 0 to stop AGS automatically using hotspot walk-to points.
Title: Re:Hotspots and Talk mode
Post by: Radiant on Thu 18/03/2004 18:30:36
Let's see, that'd stop walk-tos entirely, but I can script something like
if CursorMode() == MODE_USE { moveCharacter (EGO, walkto.x, walkto.y) }   [sp?]

Right? Thanks!
Title: Re:Hotspots and Talk mode
Post by: strazer on Thu 18/03/2004 18:49:10
Yes.
You would use

MoveCharacter (EGO, GetHotSpotPointX(THEHOTSPOTNUMBER), GetHotSpotPointY(THEHOTSPOTNUMBER));