Clint Herron
Clint Herron
I know this is an old question on an inactive board, but given that this still shows up in Google results, I figured this is the best place to put...
I know this is a very old question on a defunct message board, but given that this still shows up in search results (and I was having the same issue),...
I know this is a very old question on a defunct message board, but given that this still shows up in search results (and I was having a similar issue),...
This is what a traced bounce looks like: ``` *whenGreenFlagClicked() { this.costume = "costume1"; this.goto(100, 0); while (true) { this.move(3); this.ifOnEdgeBounce(); this.penDown = true; this.direction += 0.3; yield; } }...
Thank you for looking at this with me! I created a new Scratch project that runs for a deterministic amount of time: https://scratch.mit.edu/projects/714711064 So in a perfect world, we will...
Yup, that's the issue. I made a test program to illustrate it more: https://scratch.mit.edu/projects/714724731/editor/ ``` *whenGreenFlagClicked() { this.costume = "costume1"; this.goto(100, 0); this.direction = 90; this.penColor = Color.rgb(255, 0, 0);...
So I tested this with the improvements from #119 and it works a LOT better... but it's still not identical.  vs.  Some of this looks like it might...
Hah. Silly mistake on my part. I switched to the tight bounding box for `ifOnEdgeBounce` but forgot to do the same for `keepInFence`. Once I did that, the results are...
@PullJosh Another thing to keep in mind is that 100% compatibility with Scratch [may not be what we want](https://scratch.mit.edu/projects/349149479/) in this case, given that the reference implementation isn't without its...
@PullJosh Yeah, that and the fact that on some edges it stops at the edge of a pixel, and on the others it goes halfway through the pixel before stopping....