So, basically, my character keeps dissapearing during cinemas in my game. I have multiple abilites that change the characters appearance, so I have a script: scrVarDeclare() that says what all of the sprites are at each position:
if global.player="normal"{
left=sprplayerleft;
right=sprplayerright;
jumpright=sprplayerjumpright;
jumpleft=sprplayerjumpleft;
crouchleft=sprcrouchleft;
crouchright=sprcrouchright
climb=sprplayerclimb
climbstill=sprplayerclimbstill
standleft=sprplayerstandleft;
standright=sprplayerstandright;
leftstill=sprplayerstillleft;
rightstill=sprplayerstillright;
}
if global.player="super"{
left=sprSplayerleft;
right=sprSplayerright;
jumpright=sprSplayerjumpright;
jumpleft=sprSplayerjumpleft;
crouchleft=sprScrouchleft
crouchright=sprScrouchright
climb=sprSplayerclimb
climbstill=sprSplayerclimbstill
standleft=sprSplayerstandleft;
standright=sprSplayerstandright;
leftstill=sprSplayerstillleft;
rightstill=sprSplayerstillright;
}
etc...
And then I would have something like:
//for the holding left event
sprite_index=left
instead of:
//for the holding left event
sprite_index=sprplayerleft
I then put the scrVarDeclare() into my step event.
The problem is that I have in cinemas and such:
global.wait=true;
objplayer.sprite_index=standleft;
I think the problem has to do with me disabling the drawing of some sprites during the step event, so that he doesn't change the sprite from what I want it to be during the cinema.
Hopefully, this isn't too confusing,but can someone can help me?