Method or functions?
BlitzMax Forums/BlitzMax Beginners Area/Method or functions? methods are on type instance so they are called this way
entity:test = new test
entity.update
while functions are on type level. they are not connected to any type instance. so in your example the function is completely useless as it can not access any id. it would need to be "global id" to be a variable on type level as well
general use of functions are constructors with parameters
entity:test = new test
entity.update
while functions are on type level. they are not connected to any type instance. so in your example the function is completely useless as it can not access any id. it would need to be "global id" to be a variable on type level as well
general use of functions are constructors with parameters
ah, I see. Thanks for the info.