Well, ok, I am having some problems with this thing. I have uploaded a template of what I am trying to accomplish here at this site: http://swunlimited.freeservers.com/index.html
This is the error I got:
An exception occured in ACWin.exe at EIP = 0x00406e9c; program pointer is +6, ACI version 2.55.543,gtags(0,22)
I got this error when pushing button (Object 11) on GUI 0, named ICONBAR. When you push the button, it sets cursor mode to 10. When I play the game and push the button, it crashes and displays that message above. I believe it does that becouse it is setting the cursor mode above 9.
And when going to cursor mode 11, 12, 13, the mouse cursor was changing to rogers walking down animation view.. I tried to use setdefaultcursor on these with no success. Then I tried to use SetMouseCursor(), and that worked, but was glitchy. Anything else I can do. This is all part of the Template, so you can test this out yourself.
Also is there anyway I can change the color of a buttons text in the script?
I am also trying to create an animated button using this script in repeatedly execute in the global script:
int timer=0;
if (timer==5)
{SetButtonPic(GUI1,0,1,3);
timer++; }
if (timer==10)
{SetButtonPic(GUI1,0,1,5);
timer++;}
if (timer==15)
{SetButtonPic(GUI1,0,1,6);
timer=0;}
else timer++;
}
What am I doing wrong with this?
This is the error I got:
An exception occured in ACWin.exe at EIP = 0x00406e9c; program pointer is +6, ACI version 2.55.543,gtags(0,22)
I got this error when pushing button (Object 11) on GUI 0, named ICONBAR. When you push the button, it sets cursor mode to 10. When I play the game and push the button, it crashes and displays that message above. I believe it does that becouse it is setting the cursor mode above 9.
And when going to cursor mode 11, 12, 13, the mouse cursor was changing to rogers walking down animation view.. I tried to use setdefaultcursor on these with no success. Then I tried to use SetMouseCursor(), and that worked, but was glitchy. Anything else I can do. This is all part of the Template, so you can test this out yourself.
Also is there anyway I can change the color of a buttons text in the script?
I am also trying to create an animated button using this script in repeatedly execute in the global script:
int timer=0;
if (timer==5)
{SetButtonPic(GUI1,0,1,3);
timer++; }
if (timer==10)
{SetButtonPic(GUI1,0,1,5);
timer++;}
if (timer==15)
{SetButtonPic(GUI1,0,1,6);
timer=0;}
else timer++;
}
What am I doing wrong with this?