Game Development Community

how to get value of getPosition();

by Selin · in Technical Issues · 10/23/2011 (1:26 am) · 1 replies

I have the code below:

$obj_borderPOSX=$borderArray[%this.noArray].border.getPositionY());

borderArray is an array. I can't get the value of the array. is this statement wrong?

#1
10/23/2011 (11:45 am)
Well, there's an extra ) in there, which makes it wrong because it will probably pop a syntax error in the console, but I get the sense that that fragment was part of a bigger statement?

Also, whether it's wrong depends on what $borderArray is. Is it a GUI object or what? If it's a set of values, then calling .border.getPositionY() won't work, and getPositionY() doesn't exist (getPosition() does though). More information (and a general statement of what you're trying to accomplish) would help us help you :)