Random help on Tshirt's card demo - timing ?
Stormtrix
Member Posts: 256
Morning,
Tshirt or others.. So, basically I feel that tshirt's random card demo
is the best demo that i can find for randomizing images -
http://gamesalad.com/game/1621
However, having a small problem - so for my toddler fun shapes game, instead of dealing
with just 5 cards in the demo i'm using like 13 shapes in one game (circle, square, etc.)
So, I place 13 spawner actors (1actor, 13 instances) on the screen and occasionally it'll
spawn to shapes on the same spot/actor... hitting reset will correct it and i'll have 13 correctly
spawned shapes but then sometimes again i'll hit reset and get 2 shapes on one actor.
I'm thinking this is just a timer problem.. because the rule is running every .01 (i've tried .001 and .5)
to find the shapes and spawn only one.. the random number is hitting 2 shapes before it's attribute can be changed to a 1 and not spawn another actor.
confusing?
Any advice to correct this?
Tshirt or others.. So, basically I feel that tshirt's random card demo
is the best demo that i can find for randomizing images -
http://gamesalad.com/game/1621
However, having a small problem - so for my toddler fun shapes game, instead of dealing
with just 5 cards in the demo i'm using like 13 shapes in one game (circle, square, etc.)
So, I place 13 spawner actors (1actor, 13 instances) on the screen and occasionally it'll
spawn to shapes on the same spot/actor... hitting reset will correct it and i'll have 13 correctly
spawned shapes but then sometimes again i'll hit reset and get 2 shapes on one actor.
I'm thinking this is just a timer problem.. because the rule is running every .01 (i've tried .001 and .5)
to find the shapes and spawn only one.. the random number is hitting 2 shapes before it's attribute can be changed to a 1 and not spawn another actor.
confusing?
Any advice to correct this?
Comments
I've looked over that template and believe i understand correctly -
What it's basically doing is saying is don't move to the next card randomization until
i've determined what's been picked for the first card. The manager2b actor will go one by one
to the right on the cards to trigger the next card for randomization.
my problem is that i've got shapes that are not in a row. They are scattered on the screen.
I've tried putting in a boolean trigger to wait for picking the next shape but to me just doesn't
seem to work.. I'll keep plugging away at it..