Layer zooming scrolling bug?

Post your own tutorials, guides and demos.

Post » Wed Sep 03, 2008 11:57 pm

I wasn't sure if this was a bug or not, but its pissing me off heh...

I want it to centre on the sprite when it zooms in, but be limited to the boundries of the screen, if you tick unbounded scrolling it works, but goes off the screen.

What it should do is scroll to the left with the zoom somehow, so that the visible screen can't go beyond the left boundry of the layout.

Can anyone see a workaround?

EDIT: heh I guess this was a little hasty as I've just found a solution myself. (scroll to: min(1024-1024*50/zoomx,max(1024*50/zoomx,Sprite.x)) and similar for y)
B
2
S
2
G
5
Posts: 236
Reputation: 2,122

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 2 guests