Well if you have one big solid map, then you put an object and when player touches it player objects value A becomes like 1. When player dies and value A=1, then set the player coordinates (0,0), from checkpoint.
And if ya make save system use ini or array object, but i succest array.
I have proven new mathematic formula to be true...
Originally Posted by Mauri Mahtava Well if you have one big solid map, then you put an object and when player touches it player objects value A becomes like 1. When player dies and value A=1, then set the player coordinates (0,0), from checkpoint.
And if ya make save system use ini or array object, but i succest array.
umm...im using mmf...so when he dies select position to the object???
Make an object, make it whatever you want so long as it's an active object. And place it in the middle of the level or wherever you want it.
Now normally all active object's flags are all off by default.
so when the player touches the object it turns a flag on. lets say flag 0 for now.
so when the player dies and flag is off set the player's position to start of level,
when the player dies and the flag is on set the player's position next to the object you just made.
you will have a problem if your player dying involves restart the frame, since flags aren't remembered if you change frames or jump to the same frame.
so instead you can use a a global value,and use 0 and 1 instead of off and on.
Originally Posted by I am AndyUK (honest) Make an object, make it whatever you want so long as it's an active object. And place it in the middle of the level or wherever you want it.
Now normally all active object's flags are all off by default.
so when the player touches the object it turns a flag on. lets say flag 0 for now.
so when the player dies and flag is off set the player's position to start of level,
when the player dies and the flag is on set the player's position next to the object you just made.
you will have a problem if your player dying involves restart the frame, since flags aren't remembered if you change frames or jump to the
same frame.
so instead you can use a a global value,and use 0 and 1 instead of off and on.
when i try to set a global vaule to 0 and 1 it says cannot understand your expresion please correct it or press cancel and the flags one i didnt know how to set it up
If you want checkpoints within one level, you could create an invisible object that the player spawns at when dead.
Then when the player touches a checkpoint-object, you just set the invisible objects position to the checkpoints position.
And ofcourse you have to place the invisible object at the player, at the start of the level.
just make it so when it sets you back at the save point, make all the enemies (or whatever ones you want) to be created on the screen in their proper places.
Originally Posted by cec¿l just make it so when it sets you back at the save point, make all the enemies (or whatever ones you want) to be created on the screen in their proper places.
nothing...it didnt work and when i got back to save point i can't shoot
Well you need to restart the level for the enemies to reappear. However i'm fairly sure the flag resets if you go to the same level. (use 'jump to frame')
so yoo need to use a global value like i mentioned previously.
Originally Posted by I am AndyUK (honest) Well you need to restart the level for the enemies to reappear. However i'm fairly sure the flag resets if you go to the same level. (use 'jump to frame')
so yoo need to use a global value like i mentioned previously.
i got it yes!!! but i might post again if there is a problem ...
Originally Posted by I am AndyUK (honest) Well you need to restart the level for the enemies to reappear. However i'm fairly sure the flag resets if you go to the same level. (use 'jump to frame')
so yoo need to use a global value like i mentioned previously.