This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-01-25 23:53:23

Inkstand
Scratcher
Registered: 2008-12-16
Posts: 23

A few questions on a MS Paint-like program

Firstly I've been really impressed by the reponse I've got in previous posts, thanks heaps for all you help.

But once again I've set my mind on something out of my skill limits.
I'm looking at making something that you draw between dots. If you've heard of Isometric Paper, that's what I'm going for. Something that the mouse jumps from dot to dot, a draws a straight line between two. There's my first two problems.

1. Can you program your mouse to lock onto the CLOSEST sprite, or ideally, color? So if I were to create a pen sprite, it could draw from that dot?
2. Can you draw straight lines? Starting at one point and drawing straight out at any angle, length determined by how far the mouse is from the starting point?

I'm not sure if either is possible in Scratch, but any help would be greatly appreciated.
smile   big_smile
~Inkstand~

Last edited by Inkstand (2009-01-26 00:12:15)


"To say of what is that it is not, or of what is not that it is, is false, while to sat of what is that it is, and of what is not that it is not, is true." - Aristotle
"I don't apologize. I'm sorry, but that's just the way I am."  - Homer Simpson

Offline

 

#2 2009-01-26 00:29:14

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: A few questions on a MS Paint-like program

Sorry, there's no way to control where the mouse goes in scratch without actually moving it.  sad
But you can make a straight line by making the pen sprite start from one point, then when you touch one dot, make it jump to the next dot (with a <go to[ [/blocks] or [blocks]<go to x sad   )y sad  [/blocks] block) and it'll draw a straight line. Hope that's what you wanted...


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2009-01-26 00:49:27

Inkstand
Scratcher
Registered: 2008-12-16
Posts: 23

Re: A few questions on a MS Paint-like program

While reading your comment it occured to me I could simply click on one dot, then another to draw a line between them... I think. Thanks for the help  big_smile  Much Appreciated.
~Inkstand~


"To say of what is that it is not, or of what is not that it is, is false, while to sat of what is that it is, and of what is not that it is not, is true." - Aristotle
"I don't apologize. I'm sorry, but that's just the way I am."  - Homer Simpson

Offline

 

Board footer