Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sprite bug

edited July 2013 in Bugs Posts: 105

Hello!

I have 1.5.3 and when i made a simple code i saw this bug. The sprite instead of being just one thats moving Codea creates the same sprite all over again. Is this a bug? Code:

function setup()
    displayMode(FULLSCREEN)
    plx=400
    ply=400
end

function draw()
    plx = plx + 1
    sprite("Platformer Art:Block Brick",plx,ply)
end
Tagged:

Comments

  • edited July 2013 Posts: 2,161

    You forgot the line: background(0,0,0) to clear the screen at the start of each draw. Without that then each draw draws on top of the previous one.

  • Posts: 105

    Hm... well, now i feel stupid! Thanks @Andrew_Stacey

Sign In or Register to comment.