I'm trying to make a painting program, but I want it to activate when I click on my mouse. I tried it, but it just follows my mouse even if I don't click it. Help!
Offline
2 methods:
method 1:{
If mouse down {
goto mouse pointer
pendown
repeat until not mouse down
goto mouse pointer }
pen up}
method 2 :{
goto mouse pointer
if mouse down{
pen down}
else{
pen up }
}
Last edited by poopo (2011-01-08 11:15:29)
Offline
WeirdF wrote:
The above post is rather confusing to understand... However poopo is correct, just put this on the sprite that you want to be the pen:
http://img51.imageshack.us/img51/2374/24178354.gif
Yes sorry but this would not work smoothly as it would make an unwanted line when going to the mouse pointer so you have to either put the go to mouse pointer above the pen down or out of the ifelse block.
Offline
WeirdF wrote:
Yeah... I realised that and so I uploaded a new image, in the hope that nobody would notice my mistake... But looks like you already did!
![]()
So yeah... Here's the better script:
http://img9.imageshack.us/img9/4158/14326512.gif
Very good. Lol poopo sees all! MWAHAHAHAHAAAAAAAAAAAAAAAAAAAAAAAAAAA
Offline