T
TomaNeko
Guest
Okay, so I've never programmed before, and I've been trying to make a very simple and short game so I can learn, and see if I should keep learning. It's a platformer, and so far I've been able to allow the player to move.
I've been following Shaun Splading's Complete Platformer tutorial, so I have the exact code as he has throughout the first two parts. In his tutorial, he has a character who shoots a gun, but I'm wanting to make a dinosaur be able to bite. I've tried looking at other tutorials, but they all show using swords, guns, and other weapons that are separate to the player's object.
I don't know if something like this is possible, but I'd like to make it so that when I press a button, the dinosaur will stop moving, and they will play a small 8 frame animation, and go back to their idle sprite. In the process of this, I'd like to be able to deplete my enemies health.
I hope this makes sense.
I'd prefer if you gave me an example of code I can insert into my game, and not an explanation of what to do.
Thank you
I've been following Shaun Splading's Complete Platformer tutorial, so I have the exact code as he has throughout the first two parts. In his tutorial, he has a character who shoots a gun, but I'm wanting to make a dinosaur be able to bite. I've tried looking at other tutorials, but they all show using swords, guns, and other weapons that are separate to the player's object.
I don't know if something like this is possible, but I'd like to make it so that when I press a button, the dinosaur will stop moving, and they will play a small 8 frame animation, and go back to their idle sprite. In the process of this, I'd like to be able to deplete my enemies health.
I hope this makes sense.
I'd prefer if you gave me an example of code I can insert into my game, and not an explanation of what to do.
Thank you