Question: RestoreGameSlot()

Started by RickJ, Wed 20/04/2005 17:11:33

Previous topic - Next topic

RickJ

The RestoreGameSlot() function seems to have no affect when executed from the game_start() event.  Is this by design or an oversight or am I missing something?  Is  it something that can be changed?   

*** Edit ***
Further investigation shows that this also happens when executing from repeatedly_execute() on the first execution.   

I have also noticed that there is a momentary blink of the screen when RestoreGameSlot() begins executing and before it transitions to the target room.

======
Why is this necessary?  I wish to use the RunAGSGame() featue to callup a mini-arcade game and then return to the original game.   So to return  to the same state in the original game from where I launched the mini-game I am using SaveGameSlot() just prior to launching the mini-game and RestoreGameSlot() after returning.   

In this case it is not desireable for intermediate screens/rooms to be displayed before returning to the original room in the main game. 

I am also having a problem calling the RunAGSGame() function from within a script module.   I have previously asked about this in the Beta thread and mention it here for completeness of the above explanation.

Thanks in advance for any help you can give. 






Pumaman

game_start is called when the game is mid-way through being initialized, so it's not surprising that this wouldn't work.

A workaround would be to put it in the PlayeR Enters Screen of the first room, instead.

RickJ

That seems to work just fine.  ;D   

Just for reference I was wanting to do this in the game_start() function of a script module.  This seemed to me to be the most straight forward and intuitive way of doing things.   Since there needs to be some script in the main game to consume data returned by the mini game I can embed the restore operation in there and move it to the first room.   If you ever have ocassion to work on game initialization etc, perhaps you could keep this in mind and see if anything could be done. 

Thanks for your input.


SMF spam blocked by CleanTalk