There is a object that when I add it to the stage (or to any stage children, for that matter), it does not show up, position does not matter.
Also the object is opaque.
How I figure why the object is never getting visible at all?
By the way: I also tried to change its texture, including to the texture of objects that work, and it does not solve it.
The only "different" thing I see so far, is that I am adding it to the screen inside a "enterFrame" event.
Comments
Cheers,
Max
Likes: chipster123
Interesting, any code to see?
Without it, it is really hard to say
Likes: chipster123
So if you had the object to the stage and then the scene is created (added to the stage after the object has been added), your sprite is then "below" the scene.
In that case, you could try to do a myObject:getParent():addChild(myObject) to put it in front.
Also, adding the object as a child in an enterFrame event could lead to issues if you don't do it once and only once (on init). Unless it's something that you chose to do on purpose?
It could be so many things, as @loucsam and @ar2rsawseen said
Likes: chipster123
as @Mells mentioned, there is a big issue if you are adding an object in enter frame, the problem being that it adds an object 60 times every second, where as all you might be after is adding it once.
As for the non-visibility of your object, code would be helpful, maybe you have a spelling mistake on the object being added, maybe something else.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
I was doing Sprite.new instead of Bitmap.new!