hi say you have 3 lives, you get killed and you want to restart the level but with one less like and if you have no lives left, put up a splash screen saying game over and loading the menu
does anyone know how to code this
Re: losing a life and restarting
[Re: aslan123]
#128395 05/07/0701:1205/07/0701:12
Quote: hi say you have 3 lives, you get killed and you want to restart the level but with one less like and if you have no lives left, put up a splash screen saying game over and loading the menu
does anyone know how to code this
I have the method to do this minus the splash screens ( thats easy ) but it for the now considered out of date A5 templates.
It involves heavily modifying the origianl A5 template scripts.
If you told which version you use A5/ A6, A5 templates, A6 templates, etc.....
function life _counter_dec() { life_counter -= 1; IF(life_counter == 0) { death_panel.visible = on;} }
death_panel is the panel shown after death(I hope you know what panels are,else you can refer the manual) On this panel add a button which can be clicked to load the mainmenu.
Hope it helps. cheers!
zazang
Re: losing a life and restarting
[Re: zazang]
#128398 05/07/0716:2505/07/0716:25