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

#1 2007-07-05 14:00:19

zwitter
Scratcher
Registered: 2007-07-05
Posts: 3

death problems!!!

in my game i made it so you can shoot in 4 directions, each one has one prite with, when recieving the right command, shos itself, goes to the guy, then shoots in the right direction.

i was trying to make it so when it touches sprite watever (an alien in this case) it would broadcast somethin like "kill"

the alien sprite is simply moving back and forth in a little ditch.
i tried to make it so when the bullet hits the alien, the alien would switch costumes twice then hide, to make it look like it exploded.

the only problem is that every time the bullet hits the alien it goes right though (as expected) but does not register on the alien, so the alien does not die.

if anyone knows how to fix this it would be great.

Offline

 

#2 2007-07-05 14:07:24

zwitter
Scratcher
Registered: 2007-07-05
Posts: 3

Re: death problems!!!

i'd really like some help on this.

anyone  neutral

Offline

 

#3 2007-07-05 15:15:44

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: death problems!!!

You need to show your code for help in debugging.  There are many ways the bug you describe can happen---the most common of which is that the sprite checking for collision doesn't check often enough.

Offline

 

Board footer