look in Attach.
What am I doing wrong?
look in Attach.
What am I doing wrong?
myDisplayGroup:insert( myObject )
Don’t forget the ’ : ’
Cheers.
-Saer
Sorry, I’m very begginer, could you tell me where exactly I put this?
everywhere where you “insert”
… don’t appear :C
Where are you creating your background?
Your view.insert(ballon) type lines should be:
view:insert(ballon)
Next the lines at the bottom: I don’t know what myDisplayGroup is. I can’t see where you define it. But things can only be in one group at a time and in your case that group is “view” not “myDisplayGroup”. Remove those. Change the view.insert()'s to view:insert()'s.
But even with those changes I suspect your background is not being created in the scene and added into your “view” group. Objects not in a scene’s view, sits on top of managed groups. It’s likely that background is hiding your scenes.
I made some changes now nothing appears, please help me :{
are your .png files in your main project folder or are they in a sub-folder?
If they are in a sub-folder, here is an example of how you load them:
local background = display.newImage("gameAssets/background.png") --in this example 'gameAssets' is the name of the sub-folder.
-Saer
Are in project folder
Paste your entire code so we can see what’s going on.
Edit: I think I know what’s going on, but I’ll need to see all your code in main.lua to be sure.
Edit: Also, ‘myDisplayGroup’ was just for demonstration purposes. Obviously in your case you would put
view:insert( background )
I just posted what I did, as an example… which I thought was quite obvious.
myDisplayGroup:insert( myObject )
Don’t forget the ’ : ’
Cheers.
-Saer
Sorry, I’m very begginer, could you tell me where exactly I put this?
everywhere where you “insert”
… don’t appear :C
Where are you creating your background?
Your view.insert(ballon) type lines should be:
view:insert(ballon)
Next the lines at the bottom: I don’t know what myDisplayGroup is. I can’t see where you define it. But things can only be in one group at a time and in your case that group is “view” not “myDisplayGroup”. Remove those. Change the view.insert()'s to view:insert()'s.
But even with those changes I suspect your background is not being created in the scene and added into your “view” group. Objects not in a scene’s view, sits on top of managed groups. It’s likely that background is hiding your scenes.
I made some changes now nothing appears, please help me :{
are your .png files in your main project folder or are they in a sub-folder?
If they are in a sub-folder, here is an example of how you load them:
local background = display.newImage("gameAssets/background.png") --in this example 'gameAssets' is the name of the sub-folder.
-Saer
Are in project folder
Paste your entire code so we can see what’s going on.
Edit: I think I know what’s going on, but I’ll need to see all your code in main.lua to be sure.
Edit: Also, ‘myDisplayGroup’ was just for demonstration purposes. Obviously in your case you would put
view:insert( background )
I just posted what I did, as an example… which I thought was quite obvious.