Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Rik_Vargard on Tue 20/02/2024 14:25:37

Title: Mouse clicks not working after loading Autosave file
Post by: Rik_Vargard on Tue 20/02/2024 14:25:37
Hi, I'm trying to implement an autosave to my game, and as far as I know it works with this line of code:

SaveGameSlot(99, "AutoSave");

But when I load the Autosave, the mouse buttons don't work anymore, right or left click are "inactive".
And also, sometimes the player character isn't there anymore.

Any ideas?

Thx!
Title: Re: Mouse clicks not working after loading Autosave file
Post by: Rik_Vargard on Tue 20/02/2024 14:40:05
Oh I'm sorry nevermind:

The code has to be in the room_AfterFadeIn() function.

I put it in the room_load one  :P