Global Values resetting?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I dont know what i am doing wrong. When my character is overlapping a a specific active object(door), and presses enter, the frame position is saved to bin(1), global value a is set to 1, and he is sent to level 2. Then, when he does the same thing with a different door on level 2, frame position is saved to bin(2), he is sent back to level 1, and global value b is set to 1.

    Level one has a condition that if start of frame, global value a = 1: it will load frame position from bin(1). That works. Only problem is that when frame position (not application position) is loaded, it changes all the values AND global values back to what they were when the frame position was saved.

    Therefore, when i return to level 1, any global counters or values that may have changed in frame 2 (health, ammo, etc), are then reset to what they were when i saved level 1's frame position.


    If someone could PLEASE help me. I would be so thankful and you will be rewarded somehow.

    Thanks!

    -Nate

  • Without seeing your code it's hard to say but there must be code in the Event Editor that is being executed and resetting these values. Go down through your code and look at how it is executing when the player returns to the frame.

    KnightTrek Productions
    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!