Forum Topics tagged variable
A symbolic name associated with a value and whose associated value may be changed.
164 forum topics with this tag
Is it possible to edit a variable from inside a function? I haven't had any luck testing this out. I just had a simple function that needs to change and externa...
So far I've been using multiple objects OUTSIDE the game screen with local variables to store my in-game values in. I found that way to be quite clear for me, e...
I'm working on a rhythm game called BEATZ, and I'm using a system that uses a variable, every 1-3 seconds the chord changes to a new number between 1 and 6. Eac...
How can I do to players variable randomly in Firebase for my online games? I want to do as Pvp. { Construct 2 }. {. Example: Player 1= score: 150. Player 2= sco...
How'd I make it so an instance variable only affects a specific spawned sprite instead of all at once? For example, I have an instance variable set so that if a...
Hi again! This is my second post, here I go. Commands: A key, D key and Space bar key. I'm inspiring myself on Dandara jump mechanics: Right now my main issue i...
And then use it's value in a comparison. I can't provide a file now, but bear with me and you might get what I want to achieve. I want to retrieve the value of...
I have a global variable for score that increases by 1 every time an obstacle is destroyed after moving off-screen. On getting a Game Over, any remaining obstac...
I am testing something and am trying to make it so that when a button is clicked, 50 is subtracted from the enemies hp. The enemy's hp could either be 100 or 50...