This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-08-26 21:18:27

zbugni
Scratcher
Registered: 2008-12-13
Posts: 500+

Zoom Scrolling?

Like in that ninja renegade game.  I can't seem to figure it out.

Offline

 

#2 2011-08-26 21:29:38

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Zoom Scrolling?

Everything needs to be multiplied by your zoom.  So if you have the x y like this:
x: scrollx+x y: scrolly+y
becomes:
x: zoom(scrollx+x) y: zoom(scrolly+y)
size=zoom*100
If you want the zoom to be for the velocity, you can do this:
zoom=(2(maxvel-xvel))/maxvel for the zoom to be 2 times at a standstill.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#3 2011-08-26 21:39:49

zbugni
Scratcher
Registered: 2008-12-13
Posts: 500+

Re: Zoom Scrolling?

AtomicBawm3 wrote:

Everything needs to be multiplied by your zoom.  So if you have the x y like this:
x: scrollx+x y: scrolly+y
becomes:
x: zoom(scrollx+x) y: zoom(scrolly+y)
size=zoom*100
If you want the zoom to be for the velocity, you can do this:
zoom=(2(maxvel-xvel))/maxvel for the zoom to be 2 times at a standstill.

I don't understand it, I'm sorry I need an explanation you'd give to a preschooler. :3

Offline

 

#4 2011-08-26 21:45:54

zbugni
Scratcher
Registered: 2008-12-13
Posts: 500+

Re: Zoom Scrolling?

AtomicBawm3 wrote:

Everything needs to be multiplied by your zoom.  So if you have the x y like this:
x: scrollx+x y: scrolly+y
becomes:
x: zoom(scrollx+x) y: zoom(scrolly+y)
size=zoom*100
If you want the zoom to be for the velocity, you can do this:
zoom=(2(maxvel-xvel))/maxvel for the zoom to be 2 times at a standstill.

like what do u mean by x as in:  zoom(scrollx+x)?

Offline

 

#5 2011-08-27 08:05:42

zbugni
Scratcher
Registered: 2008-12-13
Posts: 500+

Re: Zoom Scrolling?

Please, I need help.

Offline

 

#6 2011-10-05 20:04:44

zbugni
Scratcher
Registered: 2008-12-13
Posts: 500+

Re: Zoom Scrolling?

bump

Offline

 

Board footer