spr=createsprite(0)
do
x#=x#+10.0/60.0
y#=y#+10.0/60.0
if x#>100 then x#=x#-100
if y#>100 then y#=y#-100
setspritepositionbyoffset(spr,x#,y#)
if getpointerpressed()=1 then exit
sync() // = Update() Render() Swap()
loop
end
Help make AGK better by submitting an example for this command! (All examples are subject to approval)