Content tagged instance-variable
A variable defined in a class for which each instantiated object of the class has a separate copy, or instance.
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...