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

#1 2009-02-02 12:42:32

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Touching color error?

Im getting wrong readings with one of my scripts, the variables arent changing ect... can someone have a look? http://scratch.mit.edu/projects/yambanshee/402494/download

Offline

 

#2 2009-02-02 19:04:35

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Touching color error?

it could be if the sprite is not in front. sometimes the color doesn't pick up if you have the sprite behind the other sprite


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#3 2009-02-02 19:57:16

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Touching color error?

yambanshee wrote:

Im getting wrong readings with one of my scripts, the variables arent changing ect... can someone have a look? http://scratch.mit.edu/projects/yambanshee/402494/download

Well...I looked.  I couldn't figure out what you were trying to do.  I also couldn't see where the apparent problem was.  Maybe you could take a copy of the project and remove pieces until the problem is simple enough to see clearly...or you find a logic error.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2009-02-02 22:41:46

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Touching color error?

Im tring to get a bounce simaler to ink ball, in where the when the bal touches the pen, it stops, and the line sprite works out what angle the ball hit the line at and sends a signal back to the ball to move in the opisite direction as its current one. ill troubleshoot a bit

Offline

 

#5 2009-02-03 06:39:32

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Touching color error?

the problem is now all down to the variable changing to 2 when the hitTest is confirmed.

Offline

 

#6 2009-02-03 06:41:06

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Touching color error?

maybe break up the script into saying like if whatever broadcast check for hittest or something like that


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#7 2009-02-03 06:47:24

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Touching color error?

got everything sorted, except it was a misleading test, it works, 20% of the time. If any of you want you could try to continue on to what im doing, see if you can get futher

Offline

 

Board footer