miércoles, 30 de octubre de 2013

Position X


Postby electronicboy » Tue Oct 15, 2013 7:36 pm
You can't set variables in arrays shamefully, however, it's pretty easy to work around this in fixed lengh arrays.

e.this.pos = "[" + scene.my.x + "," + e.this.pos(1) + "]"

When that is evaluated, is should produce a string: such as [8, 9], which will be parsed as an array. 
I can't test the code right now, but I can't see why that code wouldn't work. I've built arrays using string concatenation before in algodoo, and it always works fine.

No hay comentarios:

Publicar un comentario