Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: niGGo on Thu 23/07/2009 15:17:12

Title: Activate script on game startup
Post by: niGGo on Thu 23/07/2009 15:17:12
Hey folks,

having a problem with activating a script on game startup. I want my main character to go into the middle of the screen by using "MovePlayer" function and say something about the story and what's going on, but I just don't manage it. I don't know how I let the game know that all this should happen at the beginning of the game, before anything else.

Does anyone have an idea?

Best regards
niGGo
Title: Re: Activate script on game startup
Post by: Khris on Thu 23/07/2009 15:22:53
Use the first room's "player enters screen (after fadein)" event.

game_start is run even before the first room is loaded into memory and only suitable for setting up variables and the like.
Title: Re: Activate script on game startup
Post by: niGGo on Thu 23/07/2009 15:44:17
Problem solved - Thanks alot!