Could someone help please.
I use the director class to transition from screen to screen with no problem.
But one of my screen contain the following code and the Director class give me an error.
Can anyone help me please
module(…,package.seeall)
require “sprite”
– this is the basic display group
function new()
local localGroup = display.newGroup()
local background = display.newImage(“Graphics/main2.png”)
local data = require(“professor_default”).getSpriteSheetData()
local sheet = sprite.newSpriteSheetFromData (“professor.png”,data)
– inserting these lines cause Director error- failed to execute new(params) function on menu
–local set = sprite.newSpriteSet(sheet,1,16)
–local instance =sprite.newSprite(set)
–instance.x = 512
–instance.y = 300
–instance:play()
localGroup:insert(background)
– localGroup:insert(instance)
return localGroup
end [import]uid: 81215 topic_id: 21751 reply_id: 321751[/import]