I know it works but i don’t understand why it works.
In the lecture around 5mins 22secs Ben says that the SpriteIndex starts counting at 0 so we need this to be -1. However wouldn’t this imply that the index would go from Element 0 to a theoretical Element -1. So logically (at least in my head) shouldn’t this be +1 in the script instead?
Also as this Index starts counting at 0 like Ben said, why aren’t the 2 and 3 hit bricks coming into the game with the 1 hit damaged sprite that is in the Element 0 slot?
I know the LoadSprites method isn’t used until collision to change anything so this might be why but its still confusing to me.