Im having some wierd problems with this game, such as random duplicates coming up when shooting, and health not changing when the enemy attacks the human. I'll post my game down here, via a mediafire link. Any suggestions or help on what I should do will be greatly appreciated. Hopefully ASAP, this is a project for school and it's due soon. And well my teacher doesnt have a clue how to fix it either, yet I'll get docked marks if its buggy..
http://www.mediafire.com/?hj7l7qchkk8e2gd
^sorry if the code's kind of messy, tried to clean it up best I could.
Here is a screenshot of what I'm talking about for the health reductions on humanHealth, it should be working.. It's been put in for every "sprite" that it can switch too for the shooting purposes. More or less my biggest problem, in the case that you don't want to download it and search through or something.
http://gyazo.com/817717c50657010a7ea2221d2b1be907
Thanks in advance for your time.
~Nadim
Offline
Hi,how do i make a game!!
Offline
Yea the humanHealth variable seems to work fine most of the time, but doesnt sometimes. Cant really seem to figure out why. Also the "enemy" sprite seems to slow down when he makes contact with the "human", not sure why that is either. And I'm not sure how to make the enemy respawn, any ideas on that? And try shooting while walking, it really glitches out then.. But switching costumes would make it so the mismatches with the sprites don't happen anymore? I could try that, would probably take a while to try and do that. Well thanks for the fast response
Offline
awesomeowl wrote:
Hi,how do i make a game!!
Download Scratch and start programming.
Offline
Yagman5000 wrote:
Yea the humanHealth variable seems to work fine most of the time, but doesnt sometimes. Cant really seem to figure out why. Also the "enemy" sprite seems to slow down when he makes contact with the "human", not sure why that is either. And I'm not sure how to make the enemy respawn, any ideas on that? And try shooting while walking, it really glitches out then.. But switching costumes would make it so the mismatches with the sprites don't happen anymore? I could try that, would probably take a while to try and do that. Well thanks for the fast response
The problem with slowing down is probably that it's trying to iterate over a large script and the movement script is being slowed because of it, I'd happily make a project to show you how to do a basic shooting game like the one you've made
Offline