Is this the effect you're looking for..?
PHP Code:
//#CLIENTSIDE
function onCreated() {
with (findimg(200)) {
image = "block.png";
x = player.x;
y = player.y;
this.origx = x;
this.origy = y;
}
setTimer(0.05);
}
function onTimeout() {
onAdjustZoom();
setTimer(0.05);
}
function onAdjustZoom() {
with (findimg(200)) {
zoom = 1 + cos(thiso.angle) * 0.5;
y = this.origy - (getimgheight(image) / (layer >= 4 ? 2 : 32)) * zoom;
}
this.angle += pi / 32;
}
I just used the cos to zoom the image in and out to test it.