Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Need help switching between moving objects.

Discussion in 'Scripting' started by macollamore, Oct 24, 2014.

  1. macollamore

    macollamore

    Joined:
    Oct 24, 2014
    Posts:
    3
    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.
     
  2. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,085
    You're going to need to post some code :)
     
  3. Deleted User

    Deleted User

    Guest