I recently started AGS and after a bit of initial mucking around I decided to get started on a first game, which of course wont have many special features but would be good as a way to learn AGS.Ã, I really despise the sierra style GUI so as a first step to my game I decided to try and make a Lucas arts style one, unfortuanetly I have some scripting errors and some logic problems.
First I got the gui layed out, then i tested by making functions such as walk, talk and stuff to set the cursor accordingly.Ã, However then I realized that wouldnt work if I wanted the status label to change each time I did something like that, so instead I made them run scripts, here is an example.
walk button is named btnWalk, label is named lblStatus
Code: ags
as of now that does absolutely nothingÃ,Â
.
I would like to know how to make that work.
Another thing I've thought about is this, am I even going about making the status label the right way in the scripts?Ã, Later on when I want to make the label update when it goes over hotspots and such how will i do this, will it need to be in the repeatedly execute method?
Also with the cursors, If I dont want the cursor to actually change icons do i still need to do the change cursor thing?Ã, I'm wondering because I will have a lucasarts animated style crosshair, so every time I change the cursor will it reset the animation (thus making it look as if the cursor blinks)?
Im very confused right now with how to make the label work, any help would be appreciated.
/edit Also I was wondering what exactly does the #sectionstart and #sectionend do in the code, what does it tell the comptuer?
First I got the gui layed out, then i tested by making functions such as walk, talk and stuff to set the cursor accordingly.Ã, However then I realized that wouldnt work if I wanted the status label to change each time I did something like that, so instead I made them run scripts, here is an example.
walk button is named btnWalk, label is named lblStatus
#sectionstart btnWalk_Click
function btnWalk_click(){
Ã, mouse.Mode=eModeWalkto;
lblStatus.SetText ("Walk to");
}
#sectionend btnWalk_Click
as of now that does absolutely nothingÃ,Â

I would like to know how to make that work.
Another thing I've thought about is this, am I even going about making the status label the right way in the scripts?Ã, Later on when I want to make the label update when it goes over hotspots and such how will i do this, will it need to be in the repeatedly execute method?
Also with the cursors, If I dont want the cursor to actually change icons do i still need to do the change cursor thing?Ã, I'm wondering because I will have a lucasarts animated style crosshair, so every time I change the cursor will it reset the animation (thus making it look as if the cursor blinks)?
Im very confused right now with how to make the label work, any help would be appreciated.
/edit Also I was wondering what exactly does the #sectionstart and #sectionend do in the code, what does it tell the comptuer?