Say I have an object, and I want to use one expression to say, "Create Object / Set X to +8 of last created object", and then repeat that 20 times with the one line and the repeat condition. Currently the objects just spawn on top of each other instead of to the right of the last created object.
It seems simple enough, and maybe i'm just tired, but my workaround involves 20 lines in a function that just creates 20 objects at a new X value for each. i.e. ( Create Object / Set X =40, Create Object / Set X = 48, etc,
So this simple expression would remove this function call, and about 25 lines!! Thank you guys!
You could use local variables and do something like this:
VariableForX = 40
VariableForY = 100
repeat 20 times
Develop games in your browser. Powerful, performant & highly capable.
capx> http://s000.tinyupload.com/index.php?fi ... 1049685886
Thank you fellas, I don't know why I didn't consider using "loopindex", thanks a lot!! Just reduced that nasty function call to one line! Bravo!