Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Screens are not syncing from main screen to game screen and game over screen.
Started by sangam687 Jul 01 2018 11:23 PM

4 replies to this topic
multiple screens object synci
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sangam687

[GLOBAL: userInfoPane.html]
sangam687
  • Observer

  • 17 posts
  • Corona SDK

I am developing a simple game in which there are 3 screens. Main screen(play, setting, information), Game screen(play, score, die, point), gameover screen(reply, restart).

the problem is when my main screen start at the same time gameplay screen objects are also initiated. becase when i click on play button from main screen the objects on game screen are already running in middle instead of start. and at the game oer screen when i click on reply or restart, the more objects are apprear and collision of obstacle come multiple places.

please suggest to manage different screen and their objects. Thanks in advance for this.



[TOPIC: post.html]
#2

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,522 posts
  • Corona SDK

There's not enough information here. Are you using Composer?

[TOPIC: post.html]
#3

sangam687

[GLOBAL: userInfoPane.html]
sangam687
  • Observer

  • 17 posts
  • Corona SDK

no, only newGroup() i am using.



[TOPIC: post.html]
#4

sangam687

[GLOBAL: userInfoPane.html]
sangam687
  • Observer

  • 17 posts
  • Corona SDK

how can i use composer for different screens? do you have any link for that?



[TOPIC: post.html]
#5

nick_sherman

[GLOBAL: userInfoPane.html]
nick_sherman
  • Corona Geek

  • 1,522 posts
  • Corona SDK

That's what it's for:

 

https://docs.coronalabs.com/api/library/composer/index.html

https://docs.coronalabs.com/guide/system/composer/index.html

https://docs.coronalabs.com/guide/programming/04/index.html

http://masteringcoronasdk.com/composer/intro-to-composer-scene-management/

 




[topic_controls]
[/topic_controls]