Forum Topics tagged instance-variable
A variable defined in a class for which each instantiated object of the class has a separate copy, or instance.
87 forum topics with this tag
I need help with the progress bar in level 1. I want the player to collide with the food and for each collision I want the bar to decrease by 1 (I set the maxim...
In my game, a general HUD object is the same for all NPCs. However, this object has 3 different animations/frames and each NPC has its own instance variable (wi...
I was having some trouble with the typewriter in an RPG I'm working on. The typewriter types with the same delay between every character. But if there's BBCode...
I've been fighting this for a bit: I have a mechanic in my game where the main weapon has a "warm up" between click and actually firing, and a "cool down" after...
I have learned some things about instance variables and global ones but I think I am still at a very basic level, I have seen people do very cool things, they u...
I'm making a quiz game and I'm stuck in this problem. I have a sprite that works as a button with instances variable that sets the level of the game, the number...
On start layout I want to execute a loop for each of two (or more) existing instances of a text object that each represent a swipe menu. This loop starts a seco...
If I have SPRITE1 and it has an instance variable 'varX' that's of type string, for some reason I'm not able to set logic around different strings that could po...
New to the software, learning the ropes. In this code I've set the Enemy to Punch if the attackOdds are less than 5. However, I'd like this number to be differe...
Just trying to spawn an enemy with some variables being applied to its Instance Variables. The result I'm getting is that they're all coming out as 0 when the e...