Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: louis on Thu 18/12/2008 19:56:41

Title: hotspot interactions
Post by: louis on Thu 18/12/2008 19:56:41
my hotspots do not work when i click on them with the eye cursor. i typed in the following in my room script:

function wierdspears_Look()
( =the wierd brackets
Display("scary...");
) =the wierd brackets as well

i type that and it doesn't work. what shall i do?
Title: Re: hotspot interactions
Post by: Khris on Thu 18/12/2008 20:47:01
Did you type all that in the room script?
Or was
function wierdspears_Look()
{

}

already there and you just filled in the Display line?

because if you had to type all of that, you didn't link the function to the "look at hotspot" event.

Check out Tutorial -> Starting off -> Part 3 - Hotspots and interactions on how to properly link the two.
Title: Re: hotspot interactions
Post by: Trent R on Thu 18/12/2008 22:32:14
PS-The curly braces {} are next to the 'P' key (Press Shift too)

~Trent