You are not logged in.
This is very extrange. I want to create a scene when entering a map that only plays if a flag is activated.
I have a scene with an applymovement, everything works fine, but if I keep the direction button right or left at the start of the scene, the player does not move correctly in the scene and even goes through obstacles. Any idea what it can be?
I wrote the end_step in the applymovement and everything I saw in an original script of the game
RedsHouse1F_MapScripts: db 2 ; scene scripts scene_script .DespedidaMama ;SCENE_DEFAULT scene_script .DummyScene ;SCENE_FINISHED db 0 ; callbacks ;ESCENAS ======================== .DespedidaMama: checkevent EVENT_GOT_A_POKEMON_FROM_ELM iftrue .EventoMama end .DummyScene end ;EVENTOS ESCENAS ================ .EventoMama applymovement PLAYER, CaminarMama showemote EMOTE_SHOCK, REDSHOUSE1F_REDS_MOM, 15 turnobject REDSHOUSE1F_REDS_MOM, DOWN pause 25 opentext writetext DespedidaText waitbutton closetext turnobject REDSHOUSE1F_REDS_MOM, LEFT setscene SCENE_FINISHED end CaminarMama: step UP step UP step RIGHT step RIGHT step RIGHT step UP step_end
Is there a problem in doing a check just before starting the scene to know if it should or should not be executed? It seems that this may be the problem, but I do not understand why. Or maybe it's because I have not set the priorityjump? But i cant write priorityjump after the if because syntax error.
Any help pls? I'm desperate trying to understand how the scenes work.
I was so confused, but The correct way to execute a scene or not is to use the "setmapscene" command and indicate the map and which scene should be executed, not with flags as I was trying to do.
Although it has been curious to see that it almost works and can cause bugs like this.
Last edited by Kora (2019-03-04 22:05:01)