Content tagged instance-variable

A variable defined in a class for which each instantiated object of the class has a separate copy, or instance.

Similar Tags

Report Tag

87 usages of this tag
  • 1 replies
  • 420 views
This content is deleted
Forum Topic
Enemy's acting the same
0 favourites

I am trying to make each the enemys start in an idle state and then attack the player when they spot them. This has been done through using a boolean instance v...

  • 2 replies
  • 361 views
1 favourites

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...

posted 4 years ago
  • 41 replies
  • 1.5K views

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...

  • 1 replies
  • 447 views
This content is deleted
Forum Topic
How do I detect bbcode in a string?
0 favourites

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...

  • 4 replies
  • 644 views
This content is deleted
Forum Topic
Stumped: Instance Variables only sync for Host Player
0 favourites

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...

  • 3 replies
  • 397 views
This content is deleted
Forum Topic
How to improve the use of variables?
0 favourites

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...

  • 2 replies
  • 376 views
This content is deleted
Forum Topic
How do I return a value to a sprite instance variable?
0 favourites

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...

posted 4 years ago
  • 2 replies
  • 363 views
This content is deleted
Forum Topic
How do I export my game?
0 favourites

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...

  • 3 replies
  • 526 views
This content is deleted
Forum Topic
How do I use string instance variables to anchor logic?
0 favourites

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...

  • 1 replies
  • 247 views
0 favourites

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...

Similar Tags