Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
ZioCain26675yLoL I also do this sometimes, bc you have a function to actually determine if it's dead, then the death animation so you need to different functions
-
@Agred this the first thing I noticed as well. Thought it was about that until I saw the dieded method.
-
I usually just add some sort of Manager GameObject in the scene that processes all kinds of returned values from other objects and scripts.
-
@Agred no, they're not. they wait for a second (after the character has stepped on a tile, i assume) and then add a rigidbody to make it fall. then the function ends. it would have to be in a loop for it to happen every second, instead of "after a second".
basically your standard floor that breaks a moment after you've stepped on it
Do u know what else is dieded here ?
rant