This is how to create a basic paint program using Scratch.
You will first need to create a sprite which is just one dot.
The dot has to be the tiniest dot you can possibly make.
The stage is not used during this tutorial.
The following scripts are all done on the sprite you just made.
That sprite will be called, "Sprite 1".
when gf clicked clear
when gf clicked forever go to [mouse-pointer v]
when gf clicked forever if <mouse down?> pen down
when gf clicked forever if <not <mouse down?> > pen up
Offline
Or you could just do this one script inside the sprite:
when gf clicked clear forever go to [mouse-pointer v] if <mouse down?> pen down else pen up end
Last edited by AtomicBawm3 (2012-04-07 12:46:38)
Offline
Nice, but instead of 2 scripts for mouse up / down i would use:
when flag clicked forever if <mouse down?> pen down else pen up end endAnd also:
when flag clicked clear set [ghost v] effect to (100)( this makes it be practically invisible, but, unlike "hide", fully functional)
Last edited by aryabtsev (2012-04-07 12:49:29)
Offline