ok.. I've managed to move one cloud..
so in the level editor I've added one entity just for z-ordering - to mark a z-index I will add my sprites to
then in the attached script I've assigned an image to the entity and I do the shifting in the eternal loop..
how do I add more entities (with clouds) at the same z-order..
I need to find out somehow the index of my entity in the layer..
and then I would do
var entNewCloud = Scene.GetLayer("Main").InsertEntity(index,"Cloud02");
entNewCloud.SetSprite("sprites\clouds\cloud01.png");
how do I get an index of the entity in the layer?
guess I should iterate through all entities in the layer and find the one that I added in the editor.
then store its index... and add all subsequent entities using this index..
ok I'll do it this way..
guess this looks like talking to myself.. I feel i'm going crazy...
thinking on paper