Topic: Animating the stage when one of the player's is near death.

Writing code to have a stage prefab animate once one of the players is close to death.

[media]https://www.youtube.com/watch?v=e0ZSTELcgE4[/media]

near the end of the video is a good example of what I'm trying to do.

Re: Animating the stage when one of the player's is near death.

immortalfray wrote:

Writing code to have a stage prefab animate once one of the players is close to death.

[media]https://www.youtube.com/watch?v=e0ZSTELcgE4[/media]

near the end of the video is a good example of what I'm trying to do.

Haven't tried it myself but I imagine you'd most likely set a bool to true when either character's lifepoints get below a certain point, then have whatever changes you want happening on the stage set to a script that checks if that boolean is true. And if true then change? Just pseudo-coding it for you while thinking it out.

Share

Thumbs up Thumbs down

Re: Animating the stage when one of the player's is near death.

Waiting to it! Good luck

Share

Thumbs up Thumbs down

Re: Animating the stage when one of the player's is near death.

MrPonton wrote:
immortalfray wrote:

Writing code to have a stage prefab animate once one of the players is close to death.

[media]https://www.youtube.com/watch?v=e0ZSTELcgE4[/media]

near the end of the video is a good example of what I'm trying to do.

Haven't tried it myself but I imagine you'd most likely set a bool to true when either character's lifepoints get below a certain point, then have whatever changes you want happening on the stage set to a script that checks if that boolean is true. And if true then change? Just pseudo-coding it for you while thinking it out.

Yeah that's pretty much how I was gonna go about it.  Also, I have to check if it's the final round somehow.  I haven't tried it yet, but I dont imagine it'll be that complicated

5 (edited by immortalfray 2016-09-12 08:55:37)

Re: Animating the stage when one of the player's is near death.

[media]https://www.youtube.com/watch?v=iwGAC88 … mp;index=7[/media]

Works pretty well for the most part.  Obviously animations wont be this dramatic because if two people want to play a 5 round match it could get annoying.  This was a bit harder to do than I thought it would be.

Re: Animating the stage when one of the player's is near death.

Great work!

Share

Thumbs up Thumbs down