Hi hope i can explain clearly my interrogation![]()
simple exemple, the never ending track skill game... start at A point... finish at B... the visible line change and you get teleport to A etc..etc...
but i don`t want to get it repeat the same line again and again...
what i have...
i got (lets say, to keep it simple) 5 "A to B line"
line 1,2,3,4,5 whit a random (dice) set between 1 and 5...
i would like to still have 1-2-3-4-5 appears randomly but not repeating them self.
once the 5line is done..the race finish...
well i don't think this is 100% clear but maybe you have a hint that i can use![]()
(if there already a subject on that, show me the route, it will be really helpful!)
thank.
Use some sort of user input to make the values randomized, thats what I always do for my games. A button press, a stick movement, ect. sends impulse to reset randomizers.
I'm guessing you tie the number to a variable data source and check that the new random number doesnt match the previous number in the vds. So on false, it sets a new line and updates the number in the vds. On true it generates another number. But I'm guessing JB, Das or someone will actually post a method to do this knowing them! lol
Or the ninja above youOriginally Posted by Barrybarfly
Edit - Well wait....you always want line 1-5 completed then end? Das has a shuffle code (will post if hes ok with it) that will order 1-5 then randomize. Use a random seed based on a certain point on the first line (which would always be the same) like a stick movement that will set the seed and random order.
My way is more foolproof!Originally Posted by Jarr3tt88
But either way will suffice tbh.
you can use a random datasource
place an interval trigger to a set event(value=game info datasource(leftstick horizontal value)) send it to a variable datasource(initial value pretty high(use triggers))
you will never be able to make it random from the start, you need some time before it can get some randomness
true randomness can be created by reseeding with a value the the rider affects but where he has little controll over
and that changes everytime you play the track like putting the riders angles in the formula that controls the seed will give you true randomness
Sounds like a shuffling problem. I haven't been in the editor in while but aren't there vectors? Maybe you can store the numbers 1 - 5 in a vector, and somehow scramble their order at the beginning of the game.![]()
Yea I edited my post for that, like I said I don't want to give away someone elses code without asking first. Dasraiser has a shuffle code that will do exactly what he wants then,Originally Posted by xIronWarlordx
hard time to understand you in english, but i think i made like you.
at the start...
when i moove left stick or press gaz break.. its send a impulse an pick a random number (false or true...visible/invisible) etc...
so as i play line 1-2-3-4-5 appear randomly and sometime repeat each others.
how can we said "Hey random dice" don't take that number again... probably not.![]()
so how achieved this...
if there a way... hight light it so i can concentrated my "undestangnilyed ;P" on that part...
google translated is NOT good for trail editor explanation![]()
![]()
so should i play whit vector then ?
witch one ? theres 2 or tree yellow buddy "containing" verctor in there name.
m. I haven't been in the editor in while but aren't there vectors? Maybe you can store the numbers 1 - 5 in a vector, and somehow scramble their order at the beginning of the game