Simple method usnig drawline.
if getPointerState()=1
Finished=0
repeat
x=getpointerX()
y=GetPointerY()
sync()
if GetpointerX()<>X or getPOinterY()<>Y
Path.length=Path.length+1
path[Path.Length].x=GetPointerX()
path[Path.Length].y=GetPointery()
`sync() //What are these here for.....
endif
for k=2 to path.length
DrawLine(path[k-1].x,path[k-1].y,path[k].x,path[k].y,100,100,100)
next
`sync() //What are these here for.....
if GetPointerState()=0 then finished=1
until finished=1
Endif
Other ways could be creating a sprite at each position, storing the IDs in an array and deleting them afterwards, or trying something with memblocks (modifying the image of a sprite). Use your imagination
xD
edit: SetRenderToImage would be a lot simpler than memblocks
something like this would work [psuedo code]:
asdf=CreateSprite(circle image)
base=CreateSprite(0) //base sprite
Do
SetRenderToImage(base,0)
SetSpritePosition(asdf,x,y)
Render()
SetRenderToScreen()
Loop
although I probably wouldn't use this method, try experimenting with it and see if you can get it to work
EDIT:
Here's my complete modified version if your code (changes comented).
// Draw Path
SetWindowSize( 1024, 768, 0 )
SetVirtualResolution( 1024, 768 )
Type Drawpath
x as float
y as float
endtype
Path as Drawpath[]
CreateSprite(1,0)
SetSpriteSize(1,10,10)
do
SetSpritePosition(1,GetpointerX()-5,getPointerY()-5) //-5 for centering sprite. Look nicer xD
if getPointerState()=1
Finished=0
repeat
x=getpointerX()
y=GetPointerY()
`sync() //No idea what this is here for
if GetpointerX()<>X or getPOinterY()<>Y
Path.length=Path.length+1
path[Path.Length].x=GetPointerX()
path[Path.Length].y=GetPointery()
`sync() //No idea what this is here for
endif
//DRAW LINE FOR PATH
for k=2 to path.length
DrawLine(path[k-1].x,path[k-1].y,path[k].x,path[k].y,100,100,100)
next
sync()
if GetPointerState()=0 then finished=1
until finished=1
Endif
if path.length>-1
for x=0 to path.length
setspritePosition(1,path[x].x-5,path[x].y-5) //again, center sprie
//FADE OUT LINE WITH MOVEMENT OF SPRITE
for k=x+1 to path.length
DrawLine(path[k-1].x,path[k-1].y,path[k].x,path[k].y,100,100,100)
next
sync()
next
endif
path.length=-1 // Remove this and you will add to the path instead of making a new one
sync()
loop