Hello BlenderArtists.
I appeal to anyone who has experience with the concept for the KX_GameObject type.
As you know, the object properties are now dictionary properties, not object attributes, however the GameObject isn’t behaving exactly like a dictionary - you can’t use this example;
import bge
def my_test(cont):
own = cont.owner
test_dict = {}
variable_1 = test_dict.setdefault('test_variable', 1)
variable_2 = own.setdefault('test_variable', 1)
which is annoying. Is this a bug, or is there an intended reason?