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