This post is similar to a previous, but slightly different. I am trying to make a version of Snake. I have a system for moving and turning on a 6x6 ‘grid’, but what I want to do is create body parts behind the head as the snake moves about and then have the lifespan, delete the body part as it expires…creating the illusion of a moving body. Easy to do in other engines, but trying to figure out arcade.
This is what I was hoping would work, but it is failing to create additional myXBodyParts on each loop. And the lifespan doesn’t work either. I know I could create an array to create multiple instances of myXBodyParts, but seems like over kill.
It sure would be nice if there was more of an object concept that could have multiple instances using a sprite. Is creating an array really the only way in arcade?
BTW: I tried making these additional parts as projectiles, which allowed me to create multiple instances AND the lifespan worked, BUT, even after I set the projectile VX and VY to zero, they still moved.