Can anyone help!?

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

You’re inserting your text into the group before everything else, and thus it’s getting placed in the back.

Try putting the text insertion last :slight_smile:

  • C

Fantastic! I love this forum!

Thanks so much!

Or you could insert myTextObject:toFront()
After all others created but creating it last would be my preferred way

Thanks Jstrahan, I’m getting there slowly…I hope you’re not drive-texting again!

Haha
No worse
I’m eating and texting

You’re inserting your text into the group before everything else, and thus it’s getting placed in the back.

Try putting the text insertion last :slight_smile:

  • C

Fantastic! I love this forum!

Thanks so much!

Or you could insert myTextObject:toFront()
After all others created but creating it last would be my preferred way

Thanks Jstrahan, I’m getting there slowly…I hope you’re not drive-texting again!

Haha
No worse
I’m eating and texting