{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/861","repository_url":"https://api.github.com/repos/HaxeFlixel/flixel","labels_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/861/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/861/comments","events_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/861/events","html_url":"https://github.com/HaxeFlixel/flixel/issues/861","id":26775586,"number":861,"title":"Feature suggestion: FlxCamera zoom with static camera width/height","user":{"login":"VictorGrunn","id":4564486,"avatar_url":"https://avatars.githubusercontent.com/u/4564486?v=3","gravatar_id":"","url":"https://api.github.com/users/VictorGrunn","html_url":"https://github.com/VictorGrunn","followers_url":"https://api.github.com/users/VictorGrunn/followers","following_url":"https://api.github.com/users/VictorGrunn/following{/other_user}","gists_url":"https://api.github.com/users/VictorGrunn/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorGrunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorGrunn/subscriptions","organizations_url":"https://api.github.com/users/VictorGrunn/orgs","repos_url":"https://api.github.com/users/VictorGrunn/repos","events_url":"https://api.github.com/users/VictorGrunn/events{/privacy}","received_events_url":"https://api.github.com/users/VictorGrunn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFlixel/flixel/labels/Improvement","name":"Improvement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-02-03T00:22:18Z","updated_at":"2016-02-08T13:04:02Z","closed_at":null,"body":"I thought FlxCamera had this previously, but either I was mistaken or I can't find how to do it. I think it'd be great if there was a way to zoom with a camera while maintaining the width/height of the camera itself. Rather like zooming in on a window in the desktop - the graphic can get bigger, but the window stays the same.\r\n\r\nI tried replicating this with a 400w 300h camera using...\r\n\r\n```haxe\r\nvar tween:FlxTween = FlxTween.multiVar(gameCamera, { zoom: 2, width: 200, height: 150 }, 2, { type: FlxTween.PINGPONG } );\r\n```\r\n\r\n...But that's less intuitive than having a single variable to change/tween, plus the ratios don't stay synchronized anyway throughout the transition.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1423957-feature-suggestion-flxcamera-zoom-with-static-camera-width-height?utm_campaign=plugin&utm_content=tracker%2F254189&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F254189&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/comments/181357107","html_url":"https://github.com/HaxeFlixel/flixel/issues/861#issuecomment-181357107","issue_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/861","id":181357107,"user":{"login":"GimmickyApps","id":16719964,"avatar_url":"https://avatars.githubusercontent.com/u/16719964?v=3","gravatar_id":"","url":"https://api.github.com/users/GimmickyApps","html_url":"https://github.com/GimmickyApps","followers_url":"https://api.github.com/users/GimmickyApps/followers","following_url":"https://api.github.com/users/GimmickyApps/following{/other_user}","gists_url":"https://api.github.com/users/GimmickyApps/gists{/gist_id}","starred_url":"https://api.github.com/users/GimmickyApps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GimmickyApps/subscriptions","organizations_url":"https://api.github.com/users/GimmickyApps/orgs","repos_url":"https://api.github.com/users/GimmickyApps/repos","events_url":"https://api.github.com/users/GimmickyApps/events{/privacy}","received_events_url":"https://api.github.com/users/GimmickyApps/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T13:04:02Z","updated_at":"2016-02-08T13:04:02Z","body":"@VictorGrunn are you still using this code?  I'm trying to achieve exactly the same thing (but not even with tweening), but in my case, setting the width/height did not do the trick, and trying to set `camera.scroll` only fixed things in two special cases and definitely not the general case.  Any hints?\r\n\r\n(This is using the HaxeFlixel dev branch, on Win7, flash/debug target.)"}}