Page 1 of 1

Loading glitch

PostPosted: Thu May 21, 2015 10:36 am
by mindcontrol
Here's a quick video with my problem.

https://youtu.be/bkHW8Vz7cyM

as you can see, the player vanished away, how can i fix that? that's the codes i'm using:

player-> key down (k):
Code: Select all
X = pg.x;
Y = pg.y;
saveVars("myvarsName.ext", "DATA");



and this on load button -> mose key down:
Code: Select all
loadVars("myvarsName.ext", "DATA");
            pg.x = X; //pg is the filled regions on players foot, the collision with the ground is on ps, player is parent on pg.
            pg.y = Y;
            view.x = X-300;
            view.y = Y-350;
            start=1; break;

Re: Loading glitch

PostPosted: Fri May 22, 2015 8:49 am
by mindcontrol
Up

Re: Loading glitch

PostPosted: Fri May 22, 2015 5:05 pm
by Hblade
Create all the actors before loading, using create-actor (have them load off screen or place a black image in front of everything so they dont show up). Now create a timer, call it what ever you want O: now make the timer event (add - timer - select timer), and then add the loading code. Once its done, the positions will be loaded properly.

NOTE: Make sure not to create the timer multiple times.

Re: Loading glitch

PostPosted: Fri May 22, 2015 9:25 pm
by mindcontrol
i'll try