Graphics, Characters, Text & Rooms: Difference between revisions

Jump to navigation Jump to search
m
*>SSH
*>SSH
Line 256: Line 256:
Now, say you want to have a starting screen with "'''New Game'''", "'''Intro'''", "'''Load Game'''" and "'''Quit'''"... the usual menu buttons. Well, the easiest way to do it (if you want non-interactive buttons) is to draw them as part of the starting room's (usually '''INTRO.CRM''' or '''ROOM1.CRM''', whichever you prefer, note that you have to use '''ROOM0.CRM''' instead of '''INTRO.CRM''' since AGS V2.7) background. Then, create hotspots to represent each of the buttons. For "'''any click on hotspot'''" interaction, use code for each button. First of all, however, decide in which room the intro starts, and in which room actual gameplay begins. Let's say the menu screen is '''INTRO.CRM''', the intro begins with Room #1, and actual gameplay begins in Room #6...
Now, say you want to have a starting screen with "'''New Game'''", "'''Intro'''", "'''Load Game'''" and "'''Quit'''"... the usual menu buttons. Well, the easiest way to do it (if you want non-interactive buttons) is to draw them as part of the starting room's (usually '''INTRO.CRM''' or '''ROOM1.CRM''', whichever you prefer, note that you have to use '''ROOM0.CRM''' instead of '''INTRO.CRM''' since AGS V2.7) background. Then, create hotspots to represent each of the buttons. For "'''any click on hotspot'''" interaction, use code for each button. First of all, however, decide in which room the intro starts, and in which room actual gameplay begins. Let's say the menu screen is '''INTRO.CRM''', the intro begins with Room #1, and actual gameplay begins in Room #6...


For the "'''New Game'''" button, make it so that it moves the player character to room #6. For "'''Intro'''", move the player character to room #1. For "'''Load Game'''" look up '''RestroreGameDialog()''' in the manual, and for "'''Quit'''" check the manual for '''QuitGame()'''.
For the "'''New Game'''" button, make it so that it moves the player character to room #6. For "'''Intro'''", move the player character to room #1. For "'''Load Game'''" look up '''RestoreGameDialog()''' in the manual, and for "'''Quit'''" check the manual for '''QuitGame()'''.


That's basically it. It's pretty much common sense and very rudimentary scripting knowledge.
That's basically it. It's pretty much common sense and very rudimentary scripting knowledge.
Anonymous user

Navigation menu