This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-05-02 12:07:10

Yagman5000
New Scratcher
Registered: 2012-05-02
Posts: 10

My shooting game-Help with bugs

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

 

#2 2012-05-02 12:15:42

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: My shooting game-Help with bugs

I downloaded your project and it seems to work fine, it's a bit buggy from all the sprite hides and shows, you could just use 4 costumes


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#3 2012-05-02 12:21:44

awesomeowl
New Scratcher
Registered: 2012-05-01
Posts: 20

Re: My shooting game-Help with bugs

Hi,how do i make a game!!

Offline

 

#4 2012-05-02 12:21:55

Yagman5000
New Scratcher
Registered: 2012-05-02
Posts: 10

Re: My shooting game-Help with bugs

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  smile

Offline

 

#5 2012-05-02 15:22:14

robot_productions1
Scratcher
Registered: 2011-05-11
Posts: 100+

Re: My shooting game-Help with bugs

awesomeowl wrote:

Hi,how do i make a game!!

Download Scratch and start programming.


http://img844.imageshack.us/img844/6606/robotproductions1.png

Offline

 

#6 2012-05-03 17:37:46

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: My shooting game-Help with bugs

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  smile

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


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

Board footer