hey i was trying this out and i had a question, how do you type or include member variables to the Sup,Actor class?
Such as let healthvar = 100; and somehow access with the
let ActorGuy = new Sup.Actor("Test1")
and giving it that variable and accessing it later with stuff like Test1.healthvar += 1; (in some behavior script in an update function somewhere)
im very confused, also not sure where the main help thread for this software is.... im not used to typescript but trying to learn and I read how you declare objects in ECMA5 or whatever and it said you do
object = {
key: this,
key: that,
key: donelastkeyhere
}
and youd reference them within that way, but im not 100% sure. I'm trying to build a game just using code and C++ is giving me pains so i switched to typescript to see how it'd work and it seems to be similar in pain but without the awful linker issues.