Jump to content
Sign in to follow this  

problem of switching character in the game

Recommended Posts


I want to make a game which is for two players. when I press the button, the character which was chosen by 1P will move, after that if I press the button again, the character which was chosen by 2P will move, too. Just like the monopoly.

I finished the menu which is for character selection, and it can work nomarlly. The system can determine what character is for 1P and 2P.

There is a script called "Move". It is attached to every character and it can let character move after click the button. Script "Move" is successful,too. Unfortunately, it only can work normally when just one player.

So, I have a problem, The process "switch character" is failed, can someone help me to solve this?

This is my script called "DiceNumber". this script is used to create a random number and is attached to an empty game object:

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...