hotspot interactions

Started by louis, Thu 18/12/2008 19:56:41

Previous topic - Next topic

louis

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?

Khris

Did you type all that in the room script?
Or was
Code: ags
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.

Trent R

PS-The curly braces {} are next to the 'P' key (Press Shift too)

~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

SMF spam blocked by CleanTalk