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
  • 4 replies
  • 435 views
This content is deleted
Forum Topic
Why aren't these variables applying?
0 favourites

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

  • 4 replies
  • 435 views
This content is deleted
Forum Topic
How do I bring another variable in to another variable?
0 favourites

I've managed to bring a variable in to a string using the & symbol, but how do I do the same for a numeric instance variable? I took a wild guess with Hero.Guar...

  • 8 replies
  • 1.5K views
This content is deleted
Forum Topic
How do I display an instance variable?
0 favourites

I'm VERY recent to gamedev so I really don't know much. I was creating a game and in the game I created an instance variable for when I pick up a certain object...

  • 1 replies
  • 242 views
This content is deleted
Forum Topic
How do I get variable values of a sprite instance?
0 favourites

I'm trying to achieve something surely simple, but can't get it to work. For testing purpose, I want to be able to change the font color to a specified 5 color...

  • 4 replies
  • 1.1K views
This content is deleted
Forum Topic
For-Each Loops and Instance Variables
0 favourites

Anyone have a capx or suggestion on how to migrate through a text item with multiple instance variables? Basically what I need to do is compare a Text item (wit...

  • 2 replies
  • 437 views
This content is deleted
Forum Topic
PLAYER SPRITE BEING GLOBEL messing up restart layout
0 favourites

My player sprite has an instance variable for health.So when my players health is equal to 0 it should restart the layout, and I should get my health back, but...

  • 3 replies
  • 734 views
This content is deleted
Forum Topic
How do I put instance variables in an expression?
0 favourites

I am trying to make an RPG game and want to make the attack value differ according to the character stats,which are saved in instance variables. However,I can't...

  • 2 replies
  • 541 views
This content is deleted
Forum Topic
Arrays - Instance Variables - AsJSON
0 favourites

Do the instance variables of an array get stored in the AsJSON method? Problem: When I load an array from JSON the instance variables don't seem to load. Consid...

  • 2 replies
  • 887 views
This content is deleted
Forum Topic
How do I, Only destroy a specific instance of an object?
0 favourites

I am currently working on a side-scroller (platformer like) game, in which the Player has to eliminate the enemies, as usual. So, whenever a player destroys an...

  • 2 replies
  • 378 views
This content is deleted
Forum Topic
Picking instances with Variables
0 favourites

I'm trying to set instances of an object to other instances of a different object based off of a variable (if the ids match the one object should set its positi...

Similar Tags