changing to random position using tables?

guillefaceguilleface Member Posts: 1,014
edited July 2012 in Working with GS (Mac)
i have six points so i create a table with 2 rows and 6 columns.
row 1 = x 520,556,582,608,234,660
row 2 = y100,126,152,178,204,230 i watched some videos but i am really confused, so my actor is moving from right to left and when is off screen i want to change to a random position.
so i set my rule to change x position to random(1,tablecolcount(game.table1), same thing with y position, i try many different ways but i can't get it to work, i can easy try the old way, but i guess with this i can add more points if i want in the future.

Answers

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I have had trouble getting that particular function to work like I thought I should actually. There may be a bug that needs to be reported into GS. For the time being you will prob just have to manually enter the value for the random count
Sign In or Register to comment.