Hi All!
I have a student who wants to create a game where the first person (camera) has “Heart Lives” (think Zelda). I am trying to help him code that when he collides with an item the item takes away one of his hearts. The hearts are attached to a 3D Text Item which is attached to the player (camera).
So far, we are able to get 1 heart to “delete” when a collision happens. What we can’t figure out is how we can end that process and start anew with “deleting” the second heart if a subsequent collision happens.
My thinking is we need another “IF” statement… something along the lines of “If Heart 1 is deleted then delete heart 2.” Maybe we need to create variables? Any help appreciated! Here’s where we are at: