Hmmm...but you can actually make it without IF statement with only 1 line of code... something like this...
Background -> Keydown -> Left
- Code: Select all
x-=cloneindex*0.5;
//I use cloneindex*0.5 instead of cloneindex/2 because division is slower
Background -> Keydown -> Right
- Code: Select all
x+=cloneindex*0.5;
In this case, you have to clone the background with vertical array cloning

To make sure each clone's zdepth won't override each other :
Background -> CreateActor
- Code: Select all
ChangeZDepth("Event Actor", 0.001*cloneindex);
Right?
