ok...
A few new questions. I have a MI stile inventory. And I want it to diasapear in the strart up screen. But I still want my cursor to apear.
And a nother question. I have a load button in my startup screeen. What exatly do I have to do so that the load screen will pop up?
Use the GUIOff() command to deactivate the inventory.
As for the Load button, put "Run Script" in the Action property and in the interface_click function put the command RestoreGameDialog() under the button's definition.
If you use a hotspot instead a button. Put the command in the hotspot
If I use the GUI off option the cursor turns of to. But I don't want the cursor to turn of.
try enable cursor mode. im surprised that the cursor is off as well.
maybee the problem is I have a character animating and I my cursor is set to blank in the WAIT_MODE. Maybe that's the problem...
But I don't know how to fix that!
Oh and by the way! I hawe a quit button how do I set it so that when you click on it that the game shuts down.
Well, from the GUI, go in and edit your script, and, for example, lets say your GUI 3 Interface is the one with your Quit button, and lets say your Quit button on that GUI is number 0, so in your script you might have add that looks like:
if (interface == 3) {
if (button == 0) QuitGame(1);
}
Ã, Ã, Ã, Sorry, I'm still learning many of the features of scripting and such... so my explaination may not be perfect.
As far as a Start Up Screen with "Start a New Game" or "Load / Restore a Game", here's what I did:
Make a room, maybe number it something like room200 , and make room 200 appear as your start-up / first-room.
In the room editor, for room 200, check the "Hide Player Character" option, that way, your default character won't appear, and you also won't get the "Walk" pointer option.
Now, in that room, make a couple of Hotspots.
Hotspot 1, you can add (in a graphic editor and load in as your Background) in text for "Start a New Game", then from the room editor and "Area" and "Hotspots" , outline and fill it in to make it your hotspot 1.
Then from the "Interaction" button for Hotspot 1 on that room editor, select "Any click on hotspot", and select the option "Player - Go to a different room" and put in the room number you want the player to Start the New game in.
Ã,Â
Okay, now you can put in text for "Load/Restore a game", and then outline it and fill it in to make it Hotspot 2. From the room editor, from Hotspot 2 and "Interaction" button, select "Any click on Hotspot" and choose "Run Script", now edit that script for that Hotspot and add this command:Ã,Â
RestoreGameDialog();
Ã, ...Whew! Well, hope this "newbie" was of some help to ya!Ã, ;D
Best regards,
--- Don the Barbarian.
("Big Don's Adventure!" in production:
http://www.agsforums.com/yabb/index.php?topic=14181.0Ã, )
viktor, i deleted your double-post.
1. Don't do it again please.
2. We do have lives outside of the AGS forums. You can't always expect a response within minutes all the time.
Quote from: Moebius 5.18 on Thu 27/05/2004 19:45:56
viktor, i deleted your double-post.
1. Don't do it again please.
2. We do have lives outside of the AGS forums. You can't always expect a response within minutes all the time.
no problem
sorry bout that. But people please anwser my question here. This is realy bugin me. Especialy becouse the game is already finished and i only still have problems with this startup screen and ending sequence...
You might try reading the manual. It's very helpful! You didn't even respond to whether or not Barbarian's comments were helpful.
That said, this might be what you're looking for (I don't know if it's the best way to do it, but it's one way to do it - I also don't know exactly what you're trying to do, so if you gave more and clearer information, including showing your scripts, people might be able to help more):
ChangeCursorGraphic (int mode, int slot);
This changes the graphic associated with the mode you specify, where int mode will be MODE_WAIT and int slot will be the # of the image in your sprite manager that you want to change that mode to use.
That's just it I don't use scripts and sorry about me not anwsering to the respond. I read it but just had no time to try it out. And sorry it wont help. I don't use GUIs for my start up screen. I use hotspots...
But thanks anyway.
What I'm triing to do is to make an animation that wil repeat it self in the startup screen but when I set the repeat script (that someone gave me- and I cant remember who at the moment) the cursor disaperas. I also have the hide GUI turned on. And I want the cursor to be set to what ever mode. Plus this is a room and not a gui so I use hotspots. And when i click on the hotspot i would like either the load scren or the quit screen to open.
Yo, Victor.. did you fully read my previous message to you here?
I aleady explained in detail of how you can use hotspots to do it.
And do the same for the Quit option hotspot (The same way I described how to do it for the Restore a Game Hotspot). But you would use the command: QuitGame(1);
Read carefully my previous reply.
Good luck.
ok here's my roblem I never read the post cerfully and my english stinks so maybee I just oversaw it (god I feal stupid :P). Sorry abou that. I'll try it right away.
EDIT (17:26)
HEY IT WORKED!
Thanx a bunch!!!!!!!
Hey Victor... glad it worked for you and we could be of some help to you.
Best fo luck with your game,
--- Don, the Barbarian.