go to scene by attribute

a7medo778a7medo778 Member, PRO Posts: 119
edited November -1 in Working with GS (Mac)
ey there
i am creating a game with 3 worlds,
and i am trying the render the " stars " into the menu system

so can i go to a scene any other way than go to next scene ?
from the level menu i can link by go to scene name directly... but the way i got it set up is the win/lose screen appear above the level
so i cant custume the next level button for each scene

so can i say like got to currentscene + 1 ? ( ofcourse having added the appropriated attributes in the next level scene )

Comments

  • GLGAMESGLGAMES SingaporeMember Posts: 988
    just use change scene instead of next scene, in change scene drop down menu you can choose which scene you wanna link to.
  • a7medo778a7medo778 Member, PRO Posts: 119
    i cant
    the way i got it setted up that the win/lose screen is a scene by it self
    that comes up in a layer front of the current screen

    so if i made change to scene it will use that every time...

    and that doesnt selve how can i read the scre the assign stars to the level select system
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    you have two options available to you to change scenes:

    1. Next Scene
    2. Change Scene

    So, in your case you will:
    - need to customize the next level button for each scene
    - track what level you are on and wrap that button in a complicated rule like if currentLevel = 1, change scene to level 2
    - redesign how your level end logic works
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    Think your main problem is when changing scene the layers are reset to default right? Think i encounter that on my first creation using single scene with multi layers. Still not solved yet though. Using bigger scene size and playing with camera origin could help abit but then the same problem occurs if scene reset the camera also reset.
  • a7medo778a7medo778 Member, PRO Posts: 119
    mmmmmmm
    and what about the stars thingy

    i want if the player achive X in the game
    in the level selection with the complete level sign it should show like golden or silver or bronze stars

    how can i read the attribute of the specific scene ?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    If I understand what you are talking about, your making it more complicated than it needs to be.

    Just have x number of global attributes, one for each scene, and also track what level you are on in another global attribute.

    So you could have

    Game.currentLevel
    Game.level1Stars
    Game.Level2stars
    Game.level3stars
    .....

    Then can track the rating there and depending on what level they are on, show the current value.
  • a7medo778a7medo778 Member, PRO Posts: 119
    i got 75 levels..
    isnt that too much global attributs..
  • a7medo778a7medo778 Member, PRO Posts: 119
    ok
    sorry for so many questions but this is my first game with GS :D

    the pasue game behavior requires me to call a scene
    so when i call that scene with next level and everything else i cant customize the button because it will be from the original scene

    i tryed spawning it in the level after calling the new scene bt the button appears under the new scene and their for unclickable

    any tips ?
Sign In or Register to comment.