Hello all,
I'm working on a game in witch I made the obstacles this way:
-one sprite, 5 frames, each frame is a different obstacle
-I made the sprite to display the 5 frames randomly
Now, my problem is that I want to match another sprite ( that also has 5 frames) to the first sprite.
frame1(sprite1) to frame 1(sprite2)
frame2(sprite1) to frame 2(sprite2)
frame3 (sprite1) to frame3(sprite2) and so on
But the first sprite displays it's frames randomly. How do I match the frames of this 2 sprites???
I already tryed
-------sprite 2 on created->set animation frame to sprite1.AnimationFrame
It dosen't work because sprite 1and2 spawns outside the layout just like flappy birds.....so I don't think sprite 2 knows to witch frame to set it's animation since sprite 1 spawns constantly and always has a different frame displayed.
Pls help. It's been already a week since I try to solve this .
Thank you all so much