You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(1) and (3) seem to work, but the boolean reporter <touching mouse-pointer> doesn't seem to work.
It seems to be a scaling issue with the IO data sent to the VM when the player is at a non-native resolution, because it does grow at a different location (somewhere towards the bottom left).
Steps to Reproduce
Explain what someone needs to do in order to see what's described in Actual behavior above
@cwillisf I looked into this a bit and noticed that the ioData for the mouse is designed to be consumed in client coordinates, and so the mouse x/y reporters show the position in client coordinates. This is different from scratch 2, where the client coordinates are scaled to the renderer size before being consumed, so the reporters report the scaled position. That is, even at small (or big) renderer size, the mouse x is always [-240, 240]. Do we want to match the scratch 2 behavior here?
Maybe the touching block code needs to be revised. I would suggest using coordinates from the mouse or other sprite and the sprite vector rendering coordinates.
paulkaplan
added a commit
to paulkaplan/scratch-vm
that referenced
this issue
Jan 9, 2018
Expected Behavior
Please describe what should happen
This scratch project should work in the player:
![mouse-tests](https://user-images.githubusercontent.com/654102/29616715-634f7c70-87e0-11e7-8dd5-5b4d7dd64b0f.gif)
Actual Behavior
Describe what actually happens
(1) and (3) seem to work, but the boolean reporter
<touching mouse-pointer>
doesn't seem to work.It seems to be a scaling issue with the IO data sent to the VM when the player is at a non-native resolution, because it does grow at a different location (somewhere towards the bottom left).
Steps to Reproduce
Explain what someone needs to do in order to see what's described in Actual behavior above
Load up this project https://llk.github.io/scratch-gui/develop/player.html#171950733
Operating System and Browser
e.g. Mac OS 10.11.6 Safari 10.0
Screen width was at about 1200px wide when i made that gif.
The text was updated successfully, but these errors were encountered: