Snake and ladder help me tnx

public Transform numberoftiles;
public int moves;
public int tiles;

void Update() {
tiles = moves + wheel.x;
if (tiles < number of tiles.length) {
transform.postion = numberoftiles[tiles].position;

when i hit the second spin it will add tnx

A few things about this…

  1. I don’t understand the question. Please elaborate/better explain what it is you’re trying to accomplish and what you’ve tried.
  2. You didn’t need a poll / vote, did you?
  3. Please read the pinned thread in the forums about how to use code tags (inserting code properly on the forums)
  4. your script, as it is, is incomplete.
    4a) I can’t imagine that this script is very useful or works or … just not sure.

yah all i need is help to accomplish my code? yah it works? but not complete. thanks for the respond,
my character is respond when hit the wheel but when i hit the wheel again it will not add the board

so how can i add the board every time i hit the wheel tnx again methos5k

That picture’s not really enough to go on. So you have a wheel? Like instead of dice? And I guess you get a value from this wheel to move along the board? I guess you have all of the positions saved, maybe, it looked like in part of the code?
If that is true (or at least some of it), what would you say about setting it up so that when you hit the wheel (or spin it - however that works), a method is called and that changes your player’s position?
Please try to include a bit more of an explanation if there’s more to know. :slight_smile:

the tiles

i add spinWheel.spin == false; so when the spin is false. and have a value so it will add to the tiles

as you can see i have 2 script

Okay, you just wrote 3 posts… Not entirely sure what you’re talking about… and about the 2 scripts - I see 3 in tabs in the screenshot, but obviously I cannot read those. Sorry. You’re not using complete sentences to explain what’s going on and/or what you’d like to do, so I’m stumped on how to assist further.

ok thanks

i want to loop it

what version of unity you are using

i upload a video so you understand

Okay, sure… Post the video when it’s ready.

the video is too large, if you do a snake and ladder what code do you use. I appreciate it