Jump to content
  • 0

Zoom In & Out


ShiniGami NoMeresu

Question

6 answers to this question

Recommended Posts

  • 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''?

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...