ok here is what i want to do
every 10 seconds
i want to spawn an asteroid but he have 80 frames
i want to set a diferent frame for each spawn
problem is when i do so they all change frame each 10 sec XD not just the new created one
can anyone make me a little capx
Hi, hope this helps:
https://www.dropbox.com/s/5kxo89fawtd8u ... .capx?dl=0
Develop games in your browser. Powerful, performant & highly capable.
ty so much
so basically its
self mean only the one being created ?
No, it is a shortcut.
Your problem, I think, is that you were dealing with an unreferenced object. Check out the paragraph on unreferenced objects here: https://www.scirra.com/manual/75/how-events-work
If you don't reference an object at the beginning of your event, it will act on all instances of that object. In my example, "create object" is the reference the system uses to choose which Sprite instance to act upon. Therefore, only the newly created instance changes frame.
I hope this helps!
ok well i did it on the game and it worked fine