Hi im new to leadwerks sorry if this might sound so easy .
i have leadwerks 3.5 c++,lua , i opened a new project and tried to create an entity using lua code ,
i mean i have two .cpp files (main,app) and then i have a main.lua file , i tried writing the code in this http://www.leadwerks.com/werkspace/page/api-reference/_/emitter/emittercreate-r618 link in the main.lua file before the line :
while window:KeyDown(Key.Escape)==false do
but it didn't work .
i tried adding an emitter in the editor and was successful , i want to know how can you add entities using code and see them when you press run game in the editor .