How to add new enemy to Sticker Knight Template

Hi and thanks for reading, I am very new to developing and and in the learning phase obviously :). I have been able to to open the games .json map files with tiled and am able to edit the placement of the hero’s starting point and enemy placement, all the tile pieces  and have it show in coronas emulator. I have copied and pasted the enemy.lua file and made an enemyTwo.lua file.

1)I’ve added it to map extend.


map:extend( “blob”, “enemy”, “enemyTwo”, “exit”, “coin”, “spikes” )


  1. Ive linked it into the sprite file inside scene/game/img and attempted to utilize empty room on the sprite file and coded those frames into the enemyTwo.lua file like this: 

local sheetData = { width = 192, height = 256, numFrames = 79, sheetContentWidth = 1920, sheetContentHeight = 2048 }

local sheet = graphics.newImageSheet( “scene/game/img/sprites.png”, sheetData )

local sequenceData = {

{ name = “idle”, frames = { 8 } },

{ name = “walk”, frames = { 9, 10, 11, 12 } , time = 500, loopCount = 0 },


Which i assumed would give enemyTwo the appearance relative to enemy.

Where I am finding myself scratching my head the most is with in tiled itself. 

So i see in the sandbox2.json file there is 3 enemys, 2 blobs and 1 enemy(soldier guy im trying to replicate files for) 

The img file for the enemy is actually skeleton.png. I look at the properties of skeleton.png and within the “type” it says enemy so i naturally make a copy of said image and within "type i put enemyTwo Because there is clerly no other thing in the properties linking this to the enemy.lua file associated with it. 

I cant get enemyTwo to show up within Tiled nor understand how to link it to the game/enemyTwo.lua files. 

I have scoured and scoured for more details and am just not having luck. Any help would be greatly appreciated. Thanks in advance! 

Watch these videos for a quick overview of how we work in tiled…

https://www.youtube.com/watch?v=LPKrDwosYHM

Good luck!

Thank you very much Micheal. I Have not attempted this yet but i did just get done the series. I do video four lead me in the right direction. Very much appreciate your time and all the help you’ve been to me from your videos un-related to this topic as well. 

Does this series continue. I did watch the four videos. The info i seek would be in the next video where your coding in the lua files. Within the template you provided, upon opening the .json map files in tiled none of your enemy charecters have any custom properties and because the Image type editor is client based I am not really able to tell how you linked the tiled data in the lua files. Thanks

Watch this series…

https://www.youtube.com/watch?v=bRHtDJ3b2Jo

It talks about the structure of the these kinds of projects and how modules are loaded. It’s for another game, but it covers all the non-Tiled stuff.

This series was also very helpful! I’m still missing a few things but I am going to play around some more. As also thanks Michael! 

Watch these videos for a quick overview of how we work in tiled…

https://www.youtube.com/watch?v=LPKrDwosYHM

Good luck!

Thank you very much Micheal. I Have not attempted this yet but i did just get done the series. I do video four lead me in the right direction. Very much appreciate your time and all the help you’ve been to me from your videos un-related to this topic as well. 

Does this series continue. I did watch the four videos. The info i seek would be in the next video where your coding in the lua files. Within the template you provided, upon opening the .json map files in tiled none of your enemy charecters have any custom properties and because the Image type editor is client based I am not really able to tell how you linked the tiled data in the lua files. Thanks

Watch this series…

https://www.youtube.com/watch?v=bRHtDJ3b2Jo

It talks about the structure of the these kinds of projects and how modules are loaded. It’s for another game, but it covers all the non-Tiled stuff.

This series was also very helpful! I’m still missing a few things but I am going to play around some more. As also thanks Michael!