|
09-30-2012
|
152
|
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
|
Okay, any other way I can change the zoom axis? That's how I want it but its not as smooth as I need it to be (when it's further from the player it gets bigger)
|
PHP Code:
function onTimeOut() { temp.dist_x = player.x - findimg(200).x; temp.dist_y = player.y - findimg(200).y; temp.len = (this.dist_x * this.dist_x + this.dist_y * this.dist_y) ^ 0.5; findImg(200).zoom = (temp.len>1 ? temp.len : 1); }
|
|
|
|