changing cursor to pointer

Started by Corey, Fri 26/08/2005 11:07:30

Previous topic - Next topic

Corey

OK i know this looks like: "why the heck is this fool asking this??...it has been asked a 100 times..."

true .... but...

some how the functions i found in older topics wont work... if i use them it gives errors.
so can someone give me the whole function to chnage the cursor in a pointer only??


thanks
Greatest thrill
Not to kill
But to have the prize of the night
Hypocrite
Wannabe friend
13th disciple who betrayed me for nothing!

Nine Toes

#1
Well, you could do 1 of 2 things:

To change the cursor mode toÃ,  the pointer:
1. mouse.Mode = eModePointer
(in pre-AGS 2.7 script, this would be: SetCursorMode(6))
-or-
To change the graphic of the cursor, so it LOOKS like the pointer (it will still function as whatever the current cursor mode is set to):
2. mouse.ChangeModeGraphic (*the mode you are changing the graphic of*, sprite slot #)
(in pre-AGS 2.7 script, this would be: ChangeCursorGraphic(sprite #))

If you can't use the old scripting language (from before AGS 2.7), go to the main AGS menu, look under "Script", and make sure that "Enforce object-based scripting" isn't checked.

Hope it helps.

BTW, love your Slipknot avatar. :)

EDIT: Whoo... k, I'm done.
Watch, I just killed this topic...

Corey

im gonna check it out right now  :)

...


YEAH it worked !!!! only you forgot " ; " at the end but i found that out my self.


thnx alot!!  :) :D ;)









Greatest thrill
Not to kill
But to have the prize of the night
Hypocrite
Wannabe friend
13th disciple who betrayed me for nothing!

SMF spam blocked by CleanTalk