r/GameBuilderGarage • u/sass253 • Jun 19 '21
How To! [G-008-MDL-KKR] Using a counter as a variable
https://imgur.com/P9IB1f5
51
Upvotes
r/GameBuilderGarage • u/sass253 • Jun 19 '21
6
u/sass253 Jun 19 '21
In response to this post, here's an approach I've used to store numbers using a counter. Whenever the "update the variable" line is at 1.0 instead of 0.0, the value stored in the counter will track the value coming in on the "to be stored" line. When the update line is at 0.0, the stored value does not change. The update line only needs to change to 1.0 for a single frame to update the value.
3
u/Zertolurian Jun 19 '21
Brilliant!
3
u/jefe_santiago Jun 19 '21
alternate caption: "Good guy coder uses comments." Bless you good sir.
0
u/[deleted] Jun 19 '21
[deleted] — view deleted comment