Trying to copy and paste a sprite to create a pattern with a script

Cool got it working with one of the following file paths but it’s quite late so I’m too tired to check:
(C:\Program Files (x86)\Steam\steamapps\common\Aseprite\gec.png)
OR
(C:\Users\Jenni\AppData\Roaming\Aseprite\gec.png)

local canvasSprite = Sprite(3200, 3200)
app.command.BackgroundFromLayer()
local image = Image{fromFile="gec.png"}
local x = 0
local y = 0
canvasSprite.cels[1].image:drawImage(image,x,y)

Now onto the loops :slight_smile:
Thanks for the help!

1 Like