having a really frustrating problem with AGS at the moment,
it keeps telling me certain things are undefined, hotspots and objects.
I've never had this problem before, e.g I have a hotspot called hDrain
at some point i wanted the drain to dissapear so i used the following code
Code: ags
it tells, when i try to run the game that :
GlobalScript.asc(696): Error (line 696): Undefined token 'hDrain'
from what i understand this is roughly translated as "theres no such thing as hDrain, you havent made a hotspot called that"
but i clearly have! whats going on?
I even have a code earlier saying that if i stand on the hDrain it will play a certain animation and it seems to be fine with that, which confuses me even more.
it keeps telling me certain things are undefined, hotspots and objects.
I've never had this problem before, e.g I have a hotspot called hDrain
at some point i wanted the drain to dissapear so i used the following code
hDrain.Active = false;
it tells, when i try to run the game that :
GlobalScript.asc(696): Error (line 696): Undefined token 'hDrain'
from what i understand this is roughly translated as "theres no such thing as hDrain, you havent made a hotspot called that"
but i clearly have! whats going on?
I even have a code earlier saying that if i stand on the hDrain it will play a certain animation and it seems to be fine with that, which confuses me even more.