Different Levels But With Same Object Attributes

Discussion in 'How Can I...?' started by Yashveen Sookhur, Oct 4, 2020.

  1. Yashveen Sookhur

    Yashveen Sookhur Boxer

    Joined:
    Feb 29, 2020
    Messages:
    5
    Likes Received:
    0
    Hi All

    Hope all good.

    I am making a game in which have multiple scenes and I am using level selector to move on to the next scenes when the current scenes are completed.

    Now, in scene 1, I have an object which moves at a speed of , say 1 in the x-axis and has a speed % increase per second value of say, 500. That means that the value will be incremental and I want the incremental value to continue even though when the scenes are changed.

    However, when I complete scene 1 using the level selector and it moves to the next scenes, the moving object is reset to its initial speed (which is 1 in the x-axis), instead of keeping the incremental value.

    Is there any way to do this? Not sure if variable save/load will be an alternative here.

    Thanks
    Yash
     
  2. mohamed awad

    mohamed awad Avid Boxer

    Joined:
    Mar 10, 2019
    Messages:
    351
    Likes Received:
    197
    save current speed as Settings
     
  3. Yashveen Sookhur

    Yashveen Sookhur Boxer

    Joined:
    Feb 29, 2020
    Messages:
    5
    Likes Received:
    0
    Thanks for the reply. How do you do that please?

    Just to clarify, the moving object is not the character, its an enemy/platform, which is present in all scenes.

    Thanks
     

Share This Page