Creates an instance of the specified class.
1 string className
the class name.
2 vararg args
arguments to pass into the object's :init method.
local puddle = objects.create("water_puddle") puddle:setPos(x * game.WORLD_TILE_WIDTH, y * game.WORLD_TILE_HEIGHT) game.worldObject:addDecorEntity(puddle, true)