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
  • 3 replies
  • 1.8K views
1 favourites

In a similar manner as we can use the create an object by name feature in Construct 3, I was wondering if it'd be possible to set up the same mechanism for inst...

  • 2 replies
  • 474 views
This content is deleted
Forum Topic
Visible instances = Global Variable number
0 favourites

I was wondering how could I make a number of instances of the same object being related to a global variable. Trying to explain: Object: "Person". Global Variab...

  • 3 replies
  • 505 views
0 favourites

I can't figure this out, any help would be grateful. The situation: I have a sprite with 3 instance variables: -a is a Boolean and false as default. -b and -c a...

  • 3 replies
  • 434 views
This content is deleted
Forum Topic
How do I use a "Resistence" Mechanic to reduce damage?
0 favourites

Currently i'm using instance variables in a formula like this: (Hero.Damage - Enemy.Defense) <-- That's in the event to "subtract from the instance variable" (H...

  • 7 replies
  • 1.6K views
This content is deleted
Forum Topic
How do I check all sprites for instance variable value?
0 favourites

I have a project with 5 sprite objects. Each has an instance variable called "moving" for which the default value is 0. During game play several instances of ea...

  • 1 replies
  • 813 views
0 favourites

I'm trying to create some enemies using an array and a for loop. I'm currently spawning the same object using for loop and adding different instance variable va...

  • 2 replies
  • 421 views
This content is deleted
Forum Topic
How do I use instance variables?
0 favourites

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

  • 2 replies
  • 3K views
This content is deleted
Forum Topic
How do I get Sprite Instance Variables in Javascript?
0 favourites

I referenced the WORLDINSTANCE SCRIPT INTERFACE documentation. (Perhaps I referenced the wrong documentation.). But. I can't see what I want. I checked with the...

  • 2 replies
  • 654 views
This content is deleted
Forum Topic
Best way to store variables?
0 favourites

In my game, changing layouts happens frequently, and I need to find the best way to store variables so they stay consistent between layouts. Say I collect an it...

  • 2 replies
  • 491 views
This content is deleted
Forum Topic
independent function calling for instances
0 favourites

I have a project with a single event that sets a sprite's instance Boolean to true. Another event calls a function when that Boolean is true. The function then...

Similar Tags