jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.52k stars 748 forks source link

Costumes are Jumping #2100

Open maryfries opened 6 years ago

maryfries commented 6 years ago

I'm refining the Tic Tac Toe project pedagogically and for clarity, and I'm having trouble getting the clones' costumes to line up with each other. I thought it was a problem with the costumes having been built in Snap, but we rebuilt them all the same size in Illustrator, imported them as PNGs, set the rotation center to the middle by clicking that button once, and they still don't seem to be the same size...

jumping-costumes

That one pixel difference may seen slight, but we are having students both click next costume repeatedly (as shown above), which makes it jump around, and line these up in a tic tac toe grid, which makes the constructed gridlines appear broken and of varying thickness across a single gridline.

ttt-buggy-gridlines

How can we get these same-size costumes to appear the same size in Snap?

brianharvey commented 6 years ago

There's a misfeature in the costume editor (which I think was my bad idea, if I remember correctly) in which it resizes costumes that don't fill the space in the editor window. I remember I had to work really hard in Mastermind to keep the colors the same size, and maybe that was the case in TTT too. But I'm pretty sure the costumes in the original TTT project are correct, no?

maryfries commented 6 years ago

I'm not sure what you mean by "original" or "correct" but we redid the costumes because they were weird in the last version too.

image

You can currently still try that version on bjc.edc.org because we haven't uploaded yet.

jmoenig commented 6 years ago

can you share the project, I'd like to look into this (but I'll be on vacation next week), I'm sure we'll be able to get the bottom of this.

maryfries commented 6 years ago

Sure! The old style version: http://snap.berkeley.edu/snapsource/snap.html#open:https://bjc.edc.org/bjc-r/prog/2-complexity/U2L4-Tic-Tac-Toe.xml

The new style version: https://snap.berkeley.edu/snapsource/snap.html#present:Username=bjcsolutions&ProjectName=U2L4-TicTacToewithSpritesPhase1

jmoenig commented 6 years ago

Thanks!