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?

asked Jan 4 in Engine by Dumuz (223 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.

answered Jan 4 by johnygames (1,574 points)
selected Jan 4 by Dumuz

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.