• 0
ShiniGami NoMeresu

Zoom In & Out

Question

6 answers to this question

  • 0

Alright its quite something than nothing.
one thing i didn't get properly is:

  • scale - The value by which to zoom in. A value of 1.0 or greater is required. A value of 2 will double the scale of all sprites.

this code is gonna be like that.
[State 0]
type = Zoom
scale = value = 1.0 ;something
pos = x, y
i have to set value as well.. or its default and i need to leave it be ''Scale = value''?

Share this post


Link to post
Share on other sites
  • 0

I had try to use it.

[State n,Zoom sample]

type = Zoom
trigger1 = MoveHit
pos = 0,0 ; look point
postype = p2  ;pos option
scale = 1.2  ;zoom in scale(float)
;lag = 0  ; time gap on zoom?
ignorehitpause=1

 

[pos & postype]

set center point.

same as pos parameter on other state controller.

 

[scale]

set zoom magnification by float.

If you want to zoom in x1.2, set scale = 1.2

to zoom out x0.8, set scale = 0.8

( zoom out < 1.0<zoom in)

 

this state controller work like this.

 

a4.png

a6.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now