Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit) (+1)

You can make a function where you create and return an entity.

For example:


function createEntity(x,y)
 e={}
e.x= x
e.y = y
return e
end

newEntity = createEntity(10,10)
(1 edit)

thanks. this will help a lot. thanks again