Hi!
I come back with my tetris-like (remember), now I got a problem with instances.
I create some sprites, then when four sprites are create I want destroy them. So I do that:
system - pick Sprite instance 0 : destroy Sprite system - pick Sprite instance 1 : destroy Sprite system - pick Sprite instance 2 : destroy Sprite system - pick Sprite instance 3 : destroy Sprite
Only one sprite was destroy, instance 0, even if that was the fourth sprite.
I've read some topics about instances on the forum, but well I've to admit that I don't understand the problem.
Here a .capx:
test-instances.capx
Maybe I need to explain that I don't create these Srite, but they are spawned.
So, it's possible to pick these spawned sprites?
I don't get this idea too. Comes the question, will be back the family things. Enemys family, allies family. This can save lifes in my office today.
Ok so I guess I can waste my night to find another idea :D
Only the most recently created/spawned instance is picked in the sub-events that follow. change event 4 so it's not a sub-event of event 3 and they should be able to get destroyed.
Hurray!
That works great!
Merci!
Here the solution:
Wrong link.
I would like to see that example.
saludos :D
Develop games in your browser. Powerful, performant & highly capable.
Tadam I've fix the link!
Tell me if that works!