Help related to AVI,Startup GUI, Functions flow

Started by , Sun 03/07/2005 22:50:26

Previous topic - Next topic

farhanx

hi!
here are some questions
1) how can I start an avi Intro movie before the first option screen when game starts.
2) IS it better to create the first option screen which includes Credit,controls,load,Startnew game .... inside as Room or GUI is better? as game dev what u ppls do prefer and why??
3) i couldnt find the scripting functions flow like which function calls first and how they all do response on buttons and keys .... like as an oop C++ programmer i feels like if there must be any function kind of "main" and inside it there must be loop which sends messages of all kinds of keyboards keys...???

Thanks in advance

Candle

Look in the help file under Room interactions


strazer

1) Putting PlayVideo in the game_start function (menu "Script" -> "game_start") should do the trick. The game_start function is executed when the game starts, before the first room is loaded.
2) A simple room with hotspots is easier to do but I use a GUI that I can cover the current screen with anytime the player chooses to bring up the main menu.
3) AGS is event-driven, so anytime certain things happen, special built-in functions are called, oftentimes with parameters. For example, when a key is pressed, the on_key_press function is executed with its "keycode" parameter containing the ASCII code of the key that has been pressed.
Similarly, when a room is entered for example, commands added to the "Player enters screen (before fadein)" event are executed. If one of these commands happens to be "Run script", the script contained within the function linked to that command ("Edit script..." button) is executed.
Check the manual -> Reference -> Scripting event reference

SMF spam blocked by CleanTalk