-ZOMBIE DESTROYER- -Controls- -WASD to move -F to attack -Objective- Destroy zombies
Replay works most of the time. This is my first game with replay. This took me a decent bit of time to do. So when you reach one zombie left then the x and y position of the sword, player, and zombie is added to a list. Then when you kill the final zombie it replays. It replays by going through the list and setting there x and y to the numbers on that list till there is no more items in the list. I got inspiration to do a replay system by a scratcher that liked one of my projects. I ended up checking out his projects and found a replay system. I got the idea of the code and I put it here, but for the life of me it took 5 days to figure it out. The game originally started with a gun, but I decided a sword would be easier since I made the Untitled Slime Game. Turns out I ran into bugs like: Clones not disappearing, clones getting stuck on the sword, and clones randomly deleting itself. I decided to make it without clones. The way I did that was by making it so the original sprite follows the player. When it gets hit it goes to a random position to act as if a new zombie appeared. So anyway, I made this project as mostly just an experiment to see how a replay system worked. Enjoy , love and favorite, and follow for more animations, games, and object shows. I plan on making a object camp :o