change alls cursors on alls hot spot of alls frames ! HELP !

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

change alls cursors on alls hot spot of alls frames ! HELP !

Postby indy2 » Tue Jan 22, 2008 11:14 am

i need help :

a don't see the way for obtain with vbscript , in ALL hotspots of ALL frames of my games , the same cursor when the mouse is over an hot spot.

can help me ?

thanks !!

indy
indy2
Member
 
Posts: 31
Joined: Thu Nov 02, 2006 3:04 pm

Postby GM-Support » Tue Jan 22, 2008 1:42 pm

Hi indy2,

1. Put your cursor file inside the "Hotspot Graphics Files" folder (aka, the "Areas" subfolder of your project folder).

2. Go to the"Advanced" tab of the Project Properties, check the option "Execute some VBScript code every time that a frame is loaded", and enter the following code:
Code: Select all
For Each X in Hotspot
   X.MouseIcon = Action.LoadGraphicFile("MyIcon.ico")
   X.MousePointer = 99
Next

where you must replace "MyIcon.ico" with the name of your cursor file.

I just tested it and (unless typos) it should work fine.

GM-Support
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby indy2 » Tue Jan 22, 2008 2:35 pm

Ehi , many many many thanks for your speedy-reply.

with your help I don't waste time to set cursor hotspot by hotspot...

but commands via vbscript overcome settings in hotspot proprety ?

i think : yes !

ciao ciao from Italy

Indy
indy2
Member
 
Posts: 31
Joined: Thu Nov 02, 2006 3:04 pm


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests