That1SmatGuy:
I wouldn't suggest Just changing peoples code like that, the point of the forums it to learn, not say here fix this. that doesn't help him learn anythig. Help them, show them how to fix it but don't give them the fixed code.
here's the problem:
cls
loop
Rem the mouseclicking making a dot
MValuex=mousex()
MValuey=mousey()
oldx=MValuex-0.0001
oldy=MValuey-0.0001
if mouseclick() = 1
line oldx,oldy,MValuex,MValuey
endif
Sync
Your Mouse Routine is outside the Loop! lol i didn't see it for a little while.
Oh and if you have a input in a loop then it stops the loop and doesn't continue until the user presses enter.
By the way that isn't going to work correctly anyway.
what you need to do for the mouse is draw a line from oldx to oldy then set oldx and oldy to mousex and mousey. here's a example
do
if mouseclick() = 1
ink White,Green
Line OldX,OldY,MouseX(),MouseY()
OldX = MouseX()
OldY = MouseY()
else
OldX = MouseX()
OldY = MOuseY()
endif
Sync
loop
Otherwise it just makes dots.
and thefor a paint program you need to get the image of the screeen every time it changes if you are going to use cls. otherwise you don't see it.
New Site! Check it out \/