cyhak
Full vMember
Posts: 80
|
Post by cyhak on Aug 10, 2018 19:03:44 GMT
Hello community can someone give me a idea ? I am making a mobile game and when the Player dies i will pop up a window where the player can revive the character with paying coins (example: 400 ingame coins or watching an ads video)
How can i revive him ?
Thank you very much !
|
|
|
Post by Invector on Aug 12, 2018 12:50:30 GMT
Disable the GameController which restart's the scene after a while, and to revive the player on the spot you can simply add health to him and he will play the animation to get up, or you can create your own restart script to reposition the player to a spawnpoint, add health the remove the getup animation
|
|
|
Post by kukuhbasuki on Aug 13, 2018 4:47:07 GMT
I'm planning to make simple platformer game using respawn. Please add some examples on next updates.
|
|
noir
Full vMember
Posts: 57
|
Post by noir on Oct 18, 2019 15:29:48 GMT
How would you "add health" in-game or give the dead character an item to revive?
|
|
friso
New vMember
Posts: 6
|
Post by friso on Oct 21, 2019 13:28:42 GMT
noir get the reference to your character (or a character like a companion) and lookup the vThirdPersonController and use the function ChangeHealth give as parameter the amount of health, lets say 100.
|
|