I’m very confused about why I can’t see my text on the simulator!?
This is the code I’m using and I’m sure I must be doing the group wrong although it all works fine without the text in there?
local jpx825proGroup = display.newGroup();
local myTextObject = display.newText( “Just some text”, 30, 400, nil, 24 )
myTextObject:setTextColor( 255,255,255 )
local background = display.newImage(“images/JPX825pro_bg.png”)
local home = display.newImage(“images/home.png”)
home.x = 50;
home.y = 430;
home.scene = “intro”;
local backButton = display.newImage(“images/backButton.png”)
backButton.x = 260;
backButton.y = 440;
backButton.scene = “hardgoods”;
jpx825proGroup:insert(myTextObject);
jpx825proGroup:insert(background);
jpx825proGroup:insert(home);
jpx825proGroup:insert(backButton);
home:addEventListener(“touch”, changeScene);
backButton:addEventListener(“touch”, changeScene);
local widget = require( “widget” )
return jpx825proGroup;
end
