Can somebody please tell me what is wrong in this project's code?
Last edited by waveOSBeta (2010-07-24 19:04:29)
Offline
scmb1 wrote:
Maybe the bullet sprite hides before the other sprites have a chance to sense it?
Yeah, it does. When the rock gets hit, make it broadcast something and when the bullet receives the broadcast, THEN have it disappear.
Offline
graham7sarah9 wrote:
scmb1 wrote:
Maybe the bullet sprite hides before the other sprites have a chance to sense it?
Yeah, it does. When the rock gets hit, make it broadcast something and when the bullet receives the broadcast, THEN have it disappear.
GENIUS.
Le me try...
nope. Didn't work.
Offline
waveOSBeta wrote:
graham7sarah9 wrote:
scmb1 wrote:
Maybe the bullet sprite hides before the other sprites have a chance to sense it?
Yeah, it does. When the rock gets hit, make it broadcast something and when the bullet receives the broadcast, THEN have it disappear.
GENIUS.
Le me try...
nope. Didn't work.![]()
It does, I just tested it.
Its hiding before the sprites sense it.
Try again, it worked easily first time for me.
Offline
like other people said, the bullet hides before the asteroids can sense it. I had trouble with this before, and what I did is put an empty repeat 1 loop before the hide block so it waits one frame before hiding.
Offline
rufflebee wrote:
I sayed up ALL last night (I finally crashed at 12.) trying to fix this. I never got it to work 100%, but making the bullet not hide as quickly improved it some.
0_0
THANKS.
Offline
waveOSBeta wrote:
rufflebee wrote:
I sayed up ALL last night (I finally crashed at 12.) trying to fix this. I never got it to work 100%, but making the bullet not hide as quickly improved it some.
0_0
THANKS.
It irritated me that I couldn't figure it out. I'm very dedicated to my work XD
Offline
I really cant see what you guys are having a problem with, just make it do a broadcast, I got it to work in about 30 seconds.
Offline
You know, sometimes Scratch just has problems like this... It's a bit unreliable in that sense. There's no way to figure out where the problem is coming from, and it just doesn't seem to work. It's very strange!
In this general case, I'd try doing this in a different way. It'll probably work if you just code it a little differently.
Offline