I have a sprite that has another sprite that is drawn at a certain location on the original sprite. When i move the original sprite around the second sprite seemingly “lags” behind the original sprite because codea is refreshing each frame. I want to know how to turn this of for this sprite
There is nothing to turn off. It’s all in the way you’re doing it. Without seeing any code, I can’t give more information. Here’s an example of a sprite being drawn with another sprite drawn near to it. Drag your finger around the screen.
displayMode(FULLSCREEN)
function setup()
x=WIDTH/2
y=HEIGHT/2
dx,dy=0,0
end
function draw()
background(40, 40, 50)
sprite("Planet Cute:Character Boy",x+dx,y+dy)
sprite("Small World:Flag",x+dx+15,y+dy+50)
end
function touched(t)
if t.state==MOVING then
dx=dx+t.deltaX
dy=dy+t.deltaY
end
end