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
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
Offline
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.
Offline
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
the problem is now all down to the variable changing to 2 when the hitTest is confirmed.
Offline
maybe break up the script into saying like if whatever broadcast check for hittest or something like that
Offline
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