Accesing Hotspots from outside functions **SOLVED**

Started by migrator, Sat 15/10/2016 17:11:40

Previous topic - Next topic

migrator

Hi everyone.
I'm new to Ags an reading here and there i can't solve a problem i have.

First to say, my english is not so good as i wish, but i'll try to explain the problem.

I want to control the change of the mouse pointer depending on various factors (if a object, a hotspot, if is possible to interact with, grab it or only look at it).
Then i write a Hotspot event that calls a function. That function reads a custom Hotspot Property and depending on it changes the mouse pointer.

Well. The problem is: How is possible to know the hotspot that calls the function? Then, how i retrieve the property from that Hotspot?

If this way is the wrong way to do what i want, anyone knows another way to do it?

Thanks

**SOLVED** I use a pointer to storage the Hotspot in the mouse coordinates. Simple, but It's my second day with the AGS scripting.

Monsieur OUXX

 

SMF spam blocked by CleanTalk