Nick Nishort
Member
Hello! It isn't entirely clear to me how the instance method variables work. For example I have the following code:
Will "method_var" variable contain the copy of the function, which will recreated for each new instance (and take up space in memory), or will it refer to the function that already exists in memory (like a C++ method)?
I hope I have phrased my question clearly
I tried to find an answer on the forum, but I couldn't find anything suitable...
GML:
// Object Create Event
method_var = function() {
// do smth...
}
I hope I have phrased my question clearly
I tried to find an answer on the forum, but I couldn't find anything suitable...