works great but, for explanation issues the bird actor will spawn an egg actor after 2 collisions,the only problem is im recycling my bird actor and it will only spawn one egg actor no matter how many times i hit it, bird is flying from one side of the screen to the other , ideal situation would be bird will spawn 1 egg after 2 hits, every time it passes
i solved it self attribute rule when actor collides with rock self.SpawnEgg to self.SpawnEgg+1 new rule attribute self.SpawnEgg = 2 spawn actor egg new rule attribute self.position.X is greater than 990 change attribute self.SpawnEgg to 0
Comments
named self.collide
make a rule:
if actor collides with something
Change attribute:
self.collide to self.collide + 1
add a rule
If self.collide = 2
then spawn something.
Hope it helps...
for explanation issues the bird actor will spawn an egg actor after 2 collisions,the only problem is im recycling my bird actor and it will only spawn one egg actor no matter how many times i hit it, bird is flying from one side of the screen to the other ,
ideal situation would be bird will spawn 1 egg after 2 hits, every time it passes
anyone have any ideas
thanks
self attribute
rule when actor collides with rock
self.SpawnEgg to self.SpawnEgg+1
new rule
attribute self.SpawnEgg = 2
spawn actor egg
new rule
attribute self.position.X is greater than 990
change attribute
self.SpawnEgg to 0
his recycle x position is from -36 to 993