changing to random position using tables?
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.
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