0 votes

So I have a global variable changing in process and I want to 'stamp' it's value during another function, so I can compare that value to it's future value. How would I do this?

in Engine by (293 points)

1 Answer

+2 votes
Best answer

You could just create two such global variables; one that updates regulary and another one that is essentially a copy of the first. You create a function that creates a copy whenever necessary and you make another function that compares the two variables whenever you need them to be compared.

by (1,838 points)
selected by

Thanks again Johny

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.