I got a very basic question about setting up scripts for the BGE.
For better understanding, I will give an example:
Lets say, I calculate the distance between two objects each frame. Object A is moving all the time, object B stands still. Now I hit a key and from that point, I want object B always to keep the same distance to object A.
(It is not about parenting or something like that, it is about storing that offset-value)
Is there any other way than giving it to a property? I will have at least 42+ objects later on for which I will have to do this in position and orientation. That means at least 294 values :eek:
First I was thinking of just making the offset position and orientation global, but as the script always starts completely new on each frame, the values are not stored of course
Would be great if someone could help me out with this