Loading glitch

Game Editor comments and discussion.

Loading glitch

Postby mindcontrol » Thu May 21, 2015 10:36 am

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;
mindcontrol
 
Posts: 24
Joined: Sun Apr 26, 2015 12:54 pm
Score: 2 Give a positive score

Re: Loading glitch

Postby mindcontrol » Fri May 22, 2015 8:49 am

Up
mindcontrol
 
Posts: 24
Joined: Sun Apr 26, 2015 12:54 pm
Score: 2 Give a positive score

Re: Loading glitch

Postby Hblade » Fri May 22, 2015 5:05 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Loading glitch

Postby mindcontrol » Fri May 22, 2015 9:25 pm

i'll try
mindcontrol
 
Posts: 24
Joined: Sun Apr 26, 2015 12:54 pm
Score: 2 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest