Need help switching between moving objects.

Hey forums, first time post and a newbie.
I have two spherical objects that are both coded similarly to be able to move throughout the gamespace. I want to be able to hit a key and switch between the two objects, as each object has different purposes in the game. Basically the problem im running into is that I can switch between the objects and make one or the other invisible, however as I continue to hit the arrow keys even the invisible object is still moving throughout the gamespace.

You’re going to need to post some code :slight_smile:

You may want to look at this…

a better way though, would be to keep track of the objects your self as they are added to the scene by their transform…

Add those to your own array and loop through them on key input…
much faster then the above method.