The Mugen Fighters Guild

M.U.G.E.N Central => M.U.G.E.N Discussion => Development => Topic started by: beterhans on August 08, 2016, 08:24:28 am

Title: A little understanding on Mugen 1.1b zoom controller
Post by: beterhans on August 08, 2016, 08:24:28 am
After I finished this project
http://mugenguild.com/forum/boardseen./topics/beterhans-edited-ryu-ken-updated-mugen-1-1-exclusive-175653.msg2277076.html#new (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.

Title: Re: A little understanding on Mugen 1.1b zoom controller
Post by: harlandraka on January 15, 2017, 12:58:03 am
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?
Title: Re: A little understanding on Mugen 1.1b zoom controller
Post by: beterhans on January 15, 2017, 02:56:33 am
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?

Your character's mugen version also need to set to 1.1
Title: Re: A little understanding on Mugen 1.1b zoom controller
Post by: harlandraka on January 15, 2017, 09:35:00 pm
Thanks a lot!  :)