Hey folks, I'm using this bit of code:
for i = 1 to rows do
(
currentRow = i
for i = ((currentRow*framesAcross)-(framesAcross-1)) to (framesAcross*(currentRow)) do
(
theComp.mapList[i].coords.V_Offset = ((spriteHeightOffset*currentRow)-spriteHeightOffset)
rowSet = currentRow
theComp.mapList[((rowSet)*(i))].coords.U_Offset = 1
)
)
Basically, when it gets to:
theComp.mapList[((rowSet)*(i))].coords.U_Offset = 1
It errors "-- Unknown property: "coords" in undefined <<"
If I change the variable rowSet to a number it's then fine.
So... is it not being able to read the variable (that's why I created rowSet because I thought it wasn't able to read currentRow)... so... if there any way I can get it to read it?
Swordslayer · 2011-06-06