PlayMaker Help & Tips > iOS Help
Orthographic camera changing size smoothly[SOLVED]
fabmagic:
In my 2d game I manage to change the size to zoom out with set camera property when my player jumps high
But the problem is that it when I trigger the event the size jumps from 100 to 200
Can I put an itween animation to transition to the new size?
Thanks
jeanfabre:
Of course you can
Create a float variable, and use itween to tween that value from 100 to 200 or back and inject that in the camera component.
If you have trouble with that process, tell me, and i'll make a working sample
Bye,
Jean
Slater:
Heh, I would like to be able to do this. Ive done some itweening before and I have done orthograpic size change from set property, but I dont get how I combine this? Would appreciate some more info on how to accomplish this.
brendang:
Agreed... A tricky business, A sample would be awesome. Thanks Jean!
jeanfabre:
Hello,
ok, back on this post, sorry for the delay.
I made a working sample, but went away from tweening to actually use the "float interpolation" action which provides more flexibility.
This is of course just a start, but basically as you have your character jumping use this fsm. I would also investigate controlling the ortho size based on the actual jumping distance so that you gain more flexibility if you have for example power jumps and such,
bye,
Jean
Navigation
[0] Message Index
[#] Next page
Go to full version