Quote:
Originally Posted by i8bit
PHP Code:
with (findimg(200)) { spin = degtorad(0); rotation = degtorad(0); x = 0; y = 0;
Like that? not sure how to set the x and y by itself without adding it in a showImg()
|
Hint:
PHP Code:
with ( findImg( 200 ) ) {
is functionally the same as:
PHP Code:
showImg( 200, blah blah );
So yes, if you wanted to set the x/y to (29, 14). you would simply put:
PHP Code:
with ( findImg( 200 ) ) {
x = 29;
y = 14;
}
And that is technically the same as doing:
PHP Code:
showImg( 200, "block.png", 29, 14 );