i need help on how to get one object from first scene and another object from second scene and have both same objects in third scene?
example. i have the player in first scene and and the maps in the second scene
and depending on which the player the user picks and which map to play on i want both of those to appear on another scene for the user to play
any help, ideas, better ways to do it, code examples will be appreciated
thank you [import]uid: 218976 topic_id: 36353 reply_id: 336353[/import]
I presume you have a table of players to choose from and a table of maps. You can use the options param with storyboard, which allows you to pass objects between scenes.
local options =
{
effect = "slideLeft",
time = 1000,
params = {player[num]}
}
storyboard.gotoScene( "scene2", options)
This tutorial will give you an understanding of how its done
http://www.coronalabs.com/blog/2012/04/27/scene-overlays-and-parameter-passing/ [import]uid: 208811 topic_id: 36353 reply_id: 144410[/import]
alright, ill give it a try
what if i dont have tables
just have images of the objects placed on the screen?
thanks [import]uid: 218976 topic_id: 36353 reply_id: 144492[/import]
I presume you have a table of players to choose from and a table of maps. You can use the options param with storyboard, which allows you to pass objects between scenes.
local options =
{
effect = "slideLeft",
time = 1000,
params = {player[num]}
}
storyboard.gotoScene( "scene2", options)
This tutorial will give you an understanding of how its done
http://www.coronalabs.com/blog/2012/04/27/scene-overlays-and-parameter-passing/ [import]uid: 208811 topic_id: 36353 reply_id: 144410[/import]
alright, ill give it a try
what if i dont have tables
just have images of the objects placed on the screen?
thanks [import]uid: 218976 topic_id: 36353 reply_id: 144492[/import]
I presume you have a table of players to choose from and a table of maps. You can use the options param with storyboard, which allows you to pass objects between scenes.
local options =
{
effect = "slideLeft",
time = 1000,
params = {player[num]}
}
storyboard.gotoScene( "scene2", options)
This tutorial will give you an understanding of how its done
http://www.coronalabs.com/blog/2012/04/27/scene-overlays-and-parameter-passing/ [import]uid: 208811 topic_id: 36353 reply_id: 144410[/import]
alright, ill give it a try
what if i dont have tables
just have images of the objects placed on the screen?
thanks [import]uid: 218976 topic_id: 36353 reply_id: 144492[/import]
I presume you have a table of players to choose from and a table of maps. You can use the options param with storyboard, which allows you to pass objects between scenes.
local options =
{
effect = "slideLeft",
time = 1000,
params = {player[num]}
}
storyboard.gotoScene( "scene2", options)
This tutorial will give you an understanding of how its done
http://www.coronalabs.com/blog/2012/04/27/scene-overlays-and-parameter-passing/ [import]uid: 208811 topic_id: 36353 reply_id: 144410[/import]
alright, ill give it a try
what if i dont have tables
just have images of the objects placed on the screen?
thanks [import]uid: 218976 topic_id: 36353 reply_id: 144492[/import]