Hello,
I am brand new to scratch and trying to evaluate its usefulness to me. One thing that I want to be able to do is define motion in, say, metres, and have that motion superimposed accurately onto a background map. In other graphics programming environments I can define a viewport and window so that I can use arbitrary units in my logic, and have those values scaled to pixels automatically.
Is there a way that I can achieve this neatly in scratch?
Regards,
Murray
Offline
I am COMPLETELY confused so I can't really help you :c
Offline
Thanks Meew0,
I didn't see the kids necessarily getting involved in that side of it, at least not the mathematics. It doesn't really matter what the size of the stage is in pixels, as long as it's a workable minimum. What I would like to be able to do is set the stage background to a scanned image of a street map. Then I'd like to be able to say "move 10 metres" and have that movement correspond to the scaling of the map image.
Anyway, it looks like Scratch isn't up to scratch for what I want. Perhaps it could be achieved neatly with the user-defined blocks supposedly coming in version 2. I'll wait for that and then have another look.
Cheers,
Murray
Offline
It would be pretty easy to set up a scale factor and some global variables and a set of broadcasts to make this happen, if you want to work with this some more. I'd be happy to set up a demo project. Just leave a comment on one of my projects so that I'm sure to get your message
Offline
Paddle2See wrote:
It would be pretty easy to set up a scale factor and some global variables and a set of broadcasts to make this happen, if you want to work with this some more. I'd be happy to set up a demo project. Just leave a comment on one of my projects so that I'm sure to get your message
I was thinking the same thing. As long as you have a distance you know on the background image, you could fairly easily figure out a pixel to meter conversion unit by determining how many pixels there are in that distance and then just finding the meter/pixel ratio.
Offline
Many thanks Paddle2See,
You've given me some key words to get started in the right direction, so I'll use this to sink my teeth into Scratch. I think we learn most when we have a problem to solve, but I'll get back to you if I get stuck all the same.
Cheers and thanks again,
Murray
Offline