Im trying to rename an object when I hit a key so that it overwrites an existing object with that name. I have 5 objects that each have a unique paired (trackTo) object.
if mouseOver.positive: target = mouseOver.hitObject if click.positive: trackObject.worldPosition = mouseOver.hitPosition
the goal is so that when I hit 'TAB' in game, then trackObject.001 (and trackObject.002, .003, ect) all turn into that trackObject as seen above (at different times of course). thus replacing the original trackObject name with w.e else untill eventually it gets turned back into trackObject, and the cycle repeats.
I dont have much skill in python, but i seem to be getting a basic hang of things, so any help would be appreciated, also if there is an easier way of doing this, im not opposed to hearing it.