What kind of device are you using?: (Also include iOS version, and Hopscotch version) iPad Pro 4th generation, iOS 15.4, HS 3.50.5
1 sentence description of the problem (I was doing _________, and then __________ happened): I was coding, and I realized that a tiny sliver of the screen was showing in my trail art.
Steps that the Hopscotch team can take to reproduce my problem every time:
(this isnt the only way to show this bug, but its the easiest way to visualize it imo)
I tested this bug further and discovered that the X position of my object was in fact 341.5, but the X position variable was stored as 342. This means the object moves 0.5 of a pixel when making this trail art. This resulted in the sliver of white you see when you impliment this code.
And yes, there is an easy fix to this, but I still think the X position variable should be accurate.
if you do this (so you round manually before hopscotch rounds it (which it doesnt do)), you have a straight white line. This means hopscotch does not round your value input for X
and to prove my last point, if hopscotch rounds the value for X, youâd have a straight white line - but you donât, you dont have any white on your screen
so the bug here, as said by clpd earlier, is that X positionvariable is rounding, and Set Position doesnt unlike some people think - so it creates a shift of 0.5
i think those people who discovered that were confused by the bug you just reported - i dont think hopscotch rounds to the units, i think it rounds one decimal later
When you think about it, the position is in pixels. You canât move half a pixel, and only half a pixel canât be colored. So it covers the whole pixel.
no, if you think deeper, hopscotchâs stage size is always half of your screen (my ipad is 2048x1536 and on hopscotch it shows 1024x768) so yes, you can move a character by 0.5 pixels but not less
in other words, hopscotchâs pixel contains 4 ipad screen pixels.