Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: . on Tue 12/04/2005 15:29:21

Title: Cursor names [SOLVED]
Post by: . on Tue 12/04/2005 15:29:21
Where can i find cursor names? I mean if i have created other cursors where can i find the names for them if i want to like set cursor mode?
Please help me if its not in manual if it is in manual then call me a idiot.
Title: Re: Cursor names
Post by: DoorKnobHandle on Tue 12/04/2005 15:49:08
I don't think it's in the manual, but it's so simple that I'll still call you an idiot.

Idiot. ;D

Go to the Cursor Pane in AGS and you'll see'em...

Easy, wasn't it?
Title: Re: Cursor names
Post by: . on Tue 12/04/2005 16:04:04
No thats not what i meant i mean in scripting you know MODE_ USE etc...
Title: Re: Cursor names
Post by: on Tue 12/04/2005 16:11:41
That's in the manual too, but it's not as obvious as it maybe should be (it's hidden under ProcessClick). Modes 0-5 have names: MODE_WALK, MODE_LOOK, MODE_USE, MODE_TALK, MODE_USEINV, MODE_PICKUP respectivly.

The others (including any you may've made yourself) I think you just have to use the numbers for.
Title: Re: Cursor names
Post by: . on Tue 12/04/2005 16:15:18
No numbers wont do i already tried it befor i posted :-\
Title: Re: Cursor names
Post by: Ashen on Tue 12/04/2005 16:19:36
Well now thats bizarre. As I understand it, the MODE_XXX thing is just like a built-in define, linked to the cursor mode number (In 2.7, it uses enums, which are pretty similar).

EDIT: Which means you could probably set your own #define, e.g.:

#define MODE_THUMP 8

to link cursor mode 8 to MODE_THUMP

What exactly is the problem? What have you tried, and what is/isn't it doing? 
Title: Re: Cursor names
Post by: . on Tue 12/04/2005 16:57:33
Yes that is it thank you very very much (this thread can now be closed)
The defining works.
Title: Re: Cursor names
Post by: Scummbuddy on Tue 12/04/2005 16:58:16
mamarulez, please be more kind in the future.

and Kristjan, I'm glad you have your problem solved.
Title: Re: Cursor names (SOLVED)
Post by: DoorKnobHandle on Tue 12/04/2005 18:10:04
oh come on, he said:

Quote
if it is in manual then call me a idiot.

I was just trying to be funny, I guess...
Title: Re: Cursor names (SOLVED)
Post by: . on Tue 12/04/2005 18:12:51
Yea its ok i get it it was a joke
Title: Re: Cursor names (SOLVED)
Post by: Scummbuddy on Wed 13/04/2005 01:09:54
and im sorry that i missed that part.

and now that were all best friends once again...  ;)