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

#1 2010-07-24 19:04:13

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Need help - URGENT.

Can somebody please tell me what is wrong in this project's code?

Last edited by waveOSBeta (2010-07-24 19:04:29)


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#2 2010-07-24 19:14:24

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Need help - URGENT.

Maybe the bullet sprite hides before the other sprites have a chance to sense it?


http://i48.tinypic.com/2z5pqad.png

Offline

 

#3 2010-07-24 19:20:43

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: Need help - URGENT.

Let me check...

Nope.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#4 2010-07-24 19:34:16

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Need help - URGENT.

That is pretty puzzling! I'm trying to figure stuff out but I can't seem to find an answer... I'll let you know if I do  smile

Offline

 

#5 2010-07-25 09:56:53

graham7sarah9
Scratcher
Registered: 2009-07-19
Posts: 28

Re: Need help - URGENT.

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

 

#6 2010-07-25 11:56:08

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: Need help - URGENT.

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.  sad


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#7 2010-07-25 12:27:05

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: Need help - URGENT.

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.  sad

It does, I just tested it.
Its hiding before the sprites sense it.
Try again, it worked easily first time for me.

Offline

 

#8 2010-07-25 12:57:56

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: Need help - URGENT.

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.


Food is Fat. Fat is power.
        I am almighty.

Offline

 

#9 2010-07-25 13:15:08

rufflebee
Scratcher
Registered: 2008-10-15
Posts: 1000+

Re: Need help - URGENT.

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.


http://i44.tinypic.com/34e9cab.png

Offline

 

#10 2010-07-25 13:38:32

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: Need help - URGENT.

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.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#11 2010-07-25 13:41:12

rufflebee
Scratcher
Registered: 2008-10-15
Posts: 1000+

Re: Need help - URGENT.

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


http://i44.tinypic.com/34e9cab.png

Offline

 

#12 2010-07-25 13:52:14

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: Need help - URGENT.

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

 

#13 2010-07-25 15:30:12

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Need help - URGENT.

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

 

#14 2010-07-25 21:27:07

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Need help - URGENT.

As roger- suggested, just put an empty Repeat 1 block before the Go to block. It worked perfectly for me.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer