M
mootaz azaiez
Guest
Hi , the game_end() does not work anymore on android ( game_end event too ) after the new gamemaker 1.4 update ! please help !
what about the game_end event ?
do you have any solutions so i can delete the unnecessary files when closing the game ?But you made a thread about the function "game_end()" and not the Game End event. No Wonder why people are telling you about the function...
And since the function doesn't work in mobile, I wouldn't be surprised the event doesn't either. If the function is not allowed, how would you want the event to happe? It can't!
thanks mr icuurd for the idea but I need to delete those files only when the user completly finish playing the game ! so it cant be on room_end event ..Use the room end event, that's what I did for level saving. It worked on android last I tried 2 years ago.
You can also use the game start and see if the old files are there from the previous run... and delte them... or you could reuse the same files all the time... overwrite them.
i found a solution ! i can use the Game_paused function to delete the uncesecery files in the steps event !well you cant use the game end event. and it's always been the case this only works in windows. I found out the hard way 2.5 years ago. In my case it was for saving progress so the room end event worked for me... though right now I'm trying to figure out if it really did, because if the reason for the game end event not working is true, then how would I got a room end event, because in theory, for the reason given, that event also should not trigger either
I never know there's ever a "game_paused" function for GMS1 nor GMS2? What did exactly you mean? It might be more useful for others who have the same problem as yours.i found a solution ! i can use the Game_paused function to delete the uncesecery files in the steps event !
here you go :I never know there's ever a "game_paused" function for GMS1 nor GMS2? What did exactly you mean? It might be more useful for others who have the same problem as yours.
Reference,
GMS1: https://docs.yoyogames.com
GMS2: https://docs2.yoyogames.com
Don't want to presume but I sense this may be a form of micromanaging files that the user does not care about anyway, can't you just delete them by the app as required and if the app is closed, get them next time? Rather than freeing them once the game finishes, look at it the other way around - is there a reason to free them post-close?i found a solution ! i can use the Game_paused function to delete the uncesecery files in the steps event !
my app uses .ogg files to play sounds , it extracts them from a .zip file at the start of the game , and it has to delete them at the end of the game so the user will not found the .ogg sounds in hi music library !Don't want to presume but I sense this may be a form of micromanaging files that the user does not care about anyway, can't you just delete them by the app as required and if the app is closed, get them next time? Rather than freeing them once the game finishes, look at it the other way around - is there a reason to free them post-close?
That is unless your product generates gigabytes of temporary files, obviously, etc.
i dont care if they find the sounds or not , but it will bother them if they dont want to find this sounds in the music apps and librarys with their musicsBut couldn't they just find the zip file and extract that anyway ?
If someone was really wanting to get your music anyway, they could just read it from the memory while your game is loaded. I personally would suggest not worrying about it Up to you