Sorry, I forgot to say that you need to put the code I posted inside the updated.c file in order to make it to work. You can detect the title screen like the example below:That makes a lot of senses. Can you also give me an example of this as well?
void main()
{
//TITLE SCREEN
if(openborvariant("in_titlescreen")){
clearglobalvar();
}
}
@Bruce According to the manual, yes (plus the video command to play webm too).Does this gameover.txt only play gif animation and music, nothing else?

void main()
{
//GAME OVER TXT SCENE
if(openborvariant("current_scene") == "data/scenes/gameover.txt"){
clearglobalvar();
}
//GAME OVER SCREEN
if(openborvariant("in_gameoverscreen")){
clearglobalvar();
}
}
That makes a lot of senses. Can you also give me an example of this as well?Personally I prefer to clear variables at the title screen because in my case I need them to be available at the hiscore event
music data/music/gameover.ogg
animation data/scenes/gameover.gif 0 0
//GAME OVER SCREEN
if(openborvariant("in_gameoverscreen")){
clearglobalvar();
}
//GAME OVER TXT SCENE
if(openborvariant("current_scene") == "data/scenes/gameover.txt"){
clearglobalvar();
}
Sorry, I forgot to say that you need to put the code I posted inside the updated.c file in order to make it to work. You can detect the title screen like the example below:That makes a lot of senses. Can you also give me an example of this as well?
void main()
{
//TITLE SCREEN
if(openborvariant("in_titlescreen")){
clearglobalvar();
}
}
Ahh I see.Sorry, I forgot to say that you need to put the code I posted inside the updated.c file in order to make it to work. You can detect the title screen like the example below:
C:void main() { //TITLE SCREEN if(openborvariant("in_titlescreen")){ clearglobalvar(); } }
you can please explain about theupdated.c file
update.c
Engine starts update cycle.
updated.c
Engine completes update cycle.
By default I always use the updated.c, I only use update.c to capture/interrupt events before they in fact happens. As an example, I use the update.c to disable certain keys before the engine detect the input and then I can apply other effects to it.you can please explain about the
Code:update.c Engine starts update cycle. updated.c Engine completes update cycle.