Hi, I've been using AGS to make my game, and I'm nearly finished, but there's one more thing I have to do: end the game.
For my game, called Relay 70: Panel F, I would like to end the game once the last dialogue is finished, fade to black, and then display the credits.
I have gone through the tutorials, browsed the forums, and checked the Help files, but I haven't found something that addresses this topic.
Some help would be much appreciated.
Well AGS automatically fades out to black.. but If you wanted it to wait a while before showing the credits you could put this line of script in the Player Enters Screen before Fadein on the room with the credits
WaitKey(50);
or somthing..
As for the credits.. there are several ways of doing this...
You'll need to make a blank room with 'Hide Player Character Selected'
You could use the AGS Creditz Plugin which you can find on the Plugins page.
Or you could even just use room messages.
Write the Credits eg.
Game Made With AGS
then tick the Display next message after this box and in the next message write the next credit and so on.. then when they are finished you make a script action that does what you want to happen
Maybe Make the player go to the room with the start screen or even
Endgame(1);
Does this make sense?
Oh and BTW.. If you had browsed the Forums you should have seen the thread about Tutorials on the AGS Creditz Plugin......
I just tried Endgame(1); and that gave a error but QuitGame(0); works ..
Hi this is Fribbi AGDI Entertainer From AGDI Entertainment and I have visit this forums a lot but this is in my first time i post here. ;D
I have the same problem how to let the player go out without using the Icon listbar.
I used this option Interact hotspot QuitPlay(1) but I can't let the play button work only yhe Quit button.
Is there any script I can use to let the Play button work?
Thanks
Sinceraly
Fribbi the priceless AGDI Entertainer
If you want a play button I just use with a hot spot.
Example:
NewRoomEx(4,100,50);
will move the player character to room 4 and also place him at coordinates 100,50.
Found in the manual .
Do I have to use this code like this then:
Interact Hotspot
Quitplay(1);
NewRoomEx(4,100,50);
well you have two things there one quiting the game and one starting the game ? I guess I didn't understand what you want to do ? So what do you want to do ?
I've never really understood the problem with ending your game. If you want your game to fade to black, then play credits, what's stopping you? Change to a new, blank room and use the agsCreditz plugin or script it yourself? If you're having problems with the credits specifically, then say so. Otherwise, read the Beginners' FAQ, it's answered in there.
Fribbi: If you use
Interact Hotspot
QuitGame (0);
It will exit the game without the 'Quit/Play' prompt. Is that what you were asking?
Sorry.. I don't think EndGame exists.. I prob just made that up.. :)
Its QuitGame
Don't worry about this now I got it now. My issue is over thanks guys. :-*
Hey Scuthbert, thanks for the help. :)
I'm finished the game now. I'll post the link pretty soon.
I had difficulty with ending the game cuz up to that point, I hardly used any scripting, and QuitGame(0); wasn't one of the selectable options. But now that I got the scripting figured out, it was a breeze.