I have just started to learm gideros, and while I am able to load images as a single file, I run into difficluties when I try to load a region of a sprite sheet as a bitmap. Please can some one give me any ideas what I am doing wrong. When I run the code, it does not throw an error but the picture does not display either. Just to check that it is something that i am not doing wrong I used the sprite sheet from the gideros book, but still no joy. Here is the code below and I am using the scene manager also.
Level1 = Core.class(Sprite)
local pack = TexturePack.new("texturepack/levelScene.txt", "texturepack/levelScene.png",true)
local face = Bitmap.new(pack:getTextureRegion( "restart.png"))
I have also tried making pack a property of level1 (like they do in the book) but I still cant get it to work. I know the answer is going to be something really simple, but for the life of me I can not see it.