Clint Herron

Results 44 comments of 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. ![image](https://user-images.githubusercontent.com/796749/179533976-ab7334fb-fc15-4653-9302-f4cc8dd0545f.png) vs. ![image](https://user-images.githubusercontent.com/796749/179534018-9121aff0-c308-460d-8377-42f8033d6f81.png) 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....