YesNoOk
avatar

A little understanding on Mugen 1.1b zoom controller (Read 4532 times)

Started by beterhans, August 08, 2016, 08:24:28 am
Share this topic:
A little understanding on Mugen 1.1b zoom controller
#1  August 08, 2016, 08:24:28 am
  • ***
    • China
    • beterhans.blogspot.com/
After I finished this project
http://mugenguild.com/forum/boardseen./topics/beterhans-edited-ryu-ken-updated-mugen-1-1-exclusive-175653.msg2277076.html#new

I learned something new about this controller.

If this is in a camera helper

;-------------------------------------------
[State 7660, Zoom]
type = zoom
trigger1 = 1
scale =fvar(22)
pos = ((pos x) / fvar(22)) * CameraZoom, (pos y) -  (CameraPos y / fvar(22))) * CameraZoom
;-------------------------------------------

this will focus on the camera helper whatever it is.

the fvar(22) is the a relative value for zoom! not absulute!

if zoom is 1 that no change
if zoom is below 1 you got wide screen zoom out.
if zoom is bigger than 1 you can zoom in.

CameraZoom will return only the value of current stage zoom. it won't be effected by your zoom controller.

for example
if the stage's default zoom is 0.75
you put fvar22 = 1. the out come will be still 0.75
if you put fvar22 = 1.25 the out come will be 1


if you simple put pos = 0,0
the camera will always zoom in for the center of the screen
if you simple put pos = pos x, pos y
the camera will out of focus if you give a big zoom value.

Mugen have a default stage camera that you can't see.
and it moves according to the stages settings you need to subtract it effect when you use your own camera.

Re: A little understanding on Mugen 1.1b zoom controller
#2  January 15, 2017, 12:58:03 am
  • avatar
Sorry, I'm using MUGEN ver 1.1.0 beta1 p1 (2013-08-11) but Zoom controller isn't recognized... is my MUGEN version wrong?
Re: A little understanding on Mugen 1.1b zoom controller
#3  January 15, 2017, 02:56:33 am
  • ***
    • China
    • beterhans.blogspot.com/
Re: A little understanding on Mugen 1.1b zoom controller
#4  January 15, 2017, 09:35:00 pm
  • avatar
Thanks a lot!  :)