Level restart bad
Posted: Wed Mar 05, 2014 11:12 pm
Heya people, another help needy newbie here.
I am still working on the game mechanics and now I am at the point when the player die: there are no life, additional ship or stuff like that: you lose, you restart the level (or the latest checkpoint... but still need to figure how enable them).
Now, I though that for restarting the level all you needed was to use:
(Basically the first level recalling itself)
But it seems that it doesn't works smoothly: some things are missing (timer, parent actor links, scripts etc...etc...); you can see it in the source I've attached (key '1' is for inflict self damage to death (and restart) or just press 'r' to reset right away)
Believing the problem may be some residual data left in memory I tried to fix loading a "bridge level" in between the reset
level.ged > LoadGame("loading_screen.ged"); > and then in the loading_screen.ged > LoadGame("level1.ged");
But nothing solve
I am still working on the game mechanics and now I am at the point when the player die: there are no life, additional ship or stuff like that: you lose, you restart the level (or the latest checkpoint... but still need to figure how enable them).
Now, I though that for restarting the level all you needed was to use:
- Code: Select all
LoadGame("leve1.ged");
(Basically the first level recalling itself)
But it seems that it doesn't works smoothly: some things are missing (timer, parent actor links, scripts etc...etc...); you can see it in the source I've attached (key '1' is for inflict self damage to death (and restart) or just press 'r' to reset right away)
Believing the problem may be some residual data left in memory I tried to fix loading a "bridge level" in between the reset
level.ged > LoadGame("loading_screen.ged"); > and then in the loading_screen.ged > LoadGame("level1.ged");
But nothing solve