need urgent help! plz
Mcreator83
Member Posts: 120
hey guys so I am having trouble with the levels. I play the first level and when i lose it goes to the game over screen as planed but when i want to play the same level again after i hit "play again" and go to the level menu and chose the level it goes to it but it instantly goes to the game over screen. the thing is it is remembering what happened before and not reseting itself. now how do i reset the level once i win or lose and want to play it again?
this problem just came from no ware and i tried for hoers to fix it but nothing is working...
so anyone?
this problem just came from no ware and i tried for hoers to fix it but nothing is working...
so anyone?
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
so how do i reset the attributes? never done that before.
my head is all bombarded after all the things I tried. the funny thing is it might be a really easy thing to do lol :P
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
And just like jonmulcahy said you at the end when you beat the level where the behavior is to switch scenes, have chang attribute behaviors for every attribute except the one that tells that the levels clear and any thing else you want to stay the same. Change them all back to what they are at the begining of game
in my more recent games im doing basically the same thing, but having to reset many variables for different actions insntead of just health.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
I had it like this:
on touch
game.Lives = 0
change attribute
game.Lives to game.Lives+5
so i have to do this for every live there is like if it is 4 lives left i need to ad one live and if 3 i need to add 2 and so on?