When i run this code (yes the widths are negative on purpose) it draws the same sprite both times even though a different name is specified. I have had this issue only with the vector sprites
function draw()
background(127, 127, 127, 255)
spriteMode(CENTER)
sprite("Platformer Art:Monster Moving",300,300,-100,100)
sprite("SpaceCute:Beetle Ship",500,300,-100,100)
end
EDIT: Modified the code to use the suggestion by @SkyTheCoder given below.
function setup()
img=readImage("Platformer Art:Monster Moving")
end
function draw()
background(127, 127, 127, 255)
sprite("SpaceCute:Beetle Ship",400,400,-100,100)
sprite(img,200,400,-100,100)
sprite("SpaceCute:Beetle Ship",400,200,100,100)
sprite(img,200,200,100,100)
end
@Jmv38 Scale works, but when using a negative scale factor, the matching x or y value needs to be negative also for it to display in the correct position. While it can be done, it’s probably easier to use the image route.