How Can I Change Scenes Upon Score Progression?

Discussion in 'How Can I...?' started by Mr Goodcat, Feb 10, 2018.

Tags:
  1. Mr Goodcat

    Mr Goodcat Boxer

    Joined:
    Jun 10, 2017
    Messages:
    98
    Likes Received:
    28
    Hi, would anyone be able to let me know how i would change scenes when the character reaches a certain score?
    I have achieved this with event observers and switching worlds but i need to do this within a single world and just switch scenes. Upon character death i would need it to return to the start scene.

    Thanks.
     
  2. noahcdesign

    noahcdesign Avid Boxer

    Joined:
    Oct 10, 2017
    Messages:
    104
    Likes Received:
    44
    Hey Mr Goodcat,
    If you are in a world you can see your scenes on the bottom of the window. There should be a arrow pointing upwards. Press that button and it should look like this:
    upload_2018-2-10_23-40-53.png
    (I marked the button to get to this view)

    Now you can easily drag the scenes around like you want. The numbers on top of the scenes indicate the score.
    I hope I could help you :)

    - Noah
     
    Mr Goodcat and Danlespect like this.
  3. Mr Goodcat

    Mr Goodcat Boxer

    Joined:
    Jun 10, 2017
    Messages:
    98
    Likes Received:
    28
    Hi Noah,
    Thanks for taking the time to help. Could you please explain what you mean by "The numbers on top of the scenes indicate the score."?

    I should also have mentioned that i want the scene to switch when the player reaches a certain score (points not distance based), but the character does not move.

    Thanks again.
     
  4. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    Use an event observer in UI and select session points/coins and add the total no of score that you needed to switch to new world(Not scene because event observer could be set only in UI and not world) and point that event observer to new world and enjoy the game progression
     
    Maylock, Bllaaa and Mr Goodcat like this.
  5. Mr Goodcat

    Mr Goodcat Boxer

    Joined:
    Jun 10, 2017
    Messages:
    98
    Likes Received:
    28
    Hi, thanks for the help. So are you saying it isn’t possible to achieve this with a single world?
     
  6. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    You are welcome.Yes without event observer its impossible as of now for scenes.Will let you know if there is any alternate,
     
    Maylock and Mr Goodcat like this.
  7. Mr Goodcat

    Mr Goodcat Boxer

    Joined:
    Jun 10, 2017
    Messages:
    98
    Likes Received:
    28
    Thanks again
     
    TheGameAppStudio likes this.
  8. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    You could use an Event Observer to check when you’ve scored X Points, that then Redirects you to a new UI that displays an Unlock Button.

    That will make it look like the Unlock Button has appeared on screen.
    You can then use the Unlock Button to redirect your character to a new Scene in the same World.
     
    Maylock and Mr Goodcat like this.
  9. Mr Goodcat

    Mr Goodcat Boxer

    Joined:
    Jun 10, 2017
    Messages:
    98
    Likes Received:
    28
    Thanks again buddy. I’ll take a look into this.
     
  10. Mr Goodcat

    Mr Goodcat Boxer

    Joined:
    Jun 10, 2017
    Messages:
    98
    Likes Received:
    28
    So, I've been trying to get this to work for a little while but cant seem to do it.
    I have the event observer which redirects to a new UI which works fine. However when i put in an unlock button in this new UI, in order to redirect to another scene i cant see the button when playing the game.
     
  11. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Have you given the button an Image?
     
    Mr Goodcat likes this.
  12. Mr Goodcat

    Mr Goodcat Boxer

    Joined:
    Jun 10, 2017
    Messages:
    98
    Likes Received:
    28
    Yes the Button has an image I've used elsewhere in the game.
     
  13. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    If you have a Button there with an Image in both the Button and Locked Button Windows, it should appear in your UI even while playing the game.

    To unlock it, you’ll need to drag in an Unlock from the Logic Menu too.
     
    Mr Goodcat likes this.
  14. Mr Goodcat

    Mr Goodcat Boxer

    Joined:
    Jun 10, 2017
    Messages:
    98
    Likes Received:
    28
    Ah i see, I only had the one image in the button.
    I'm going to have to start paying you soon :D
     
    Shahbaz Awan likes this.

Share This Page