Camera zoom in/out

BeyondtheTechBeyondtheTech Member Posts: 809
edited November -1 in Working with GS (Mac)
For the camera being able to zoom in and out of the entire scene at any magnification would enhance gameplay. Tower defense games could zoom into a particular action onscreen, or if two actors pull far away from each other, the camera can zoom out to keep both of them in view while the user is able to see the whole game area.

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Agreed :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • Rob2Rob2 Member Posts: 2,402
    You would need different bitmaps for different zooms, rasters and zooms don't go well together.
  • BeyondtheTechBeyondtheTech Member Posts: 809
    I don't think so, as Torque 2D does this well. All the sprites look fine when you zoom in and out.
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    it probably depends on the sampling method used. for what we are doing, just using nearest neighbor sampling would give us snappy, yet expectedly crappy magnification.
  • devxdevx Member Posts: 26
    On a side note: can GameSalad Zoom in and out of a scene, stopping at a define zoom amount, using pinch-like gestures on the iPhone? Does anyone know where there would be any documentation on how to set this up perhaps, I dont mind the nearest neighbor sampling in this case(though something like bilinear would be great).
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    you should be able to check for 2 touches and track their magnitude; if it shrinks, it's a pinch, if it grows, it's not.
  • devxdevx Member Posts: 26
    I've read that GameSalad cant zoom in and out with the Camera, only Pan. Is this true?
    thanks BarkBark :-)
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    as a work around you could manage the size and position of all of your actors and shrink and grow them to make it look like zoom in/out...

    that's not something I would want to do on a large scale.
  • devxdevx Member Posts: 26
    ouch this is something I'd like in most of the projects I'm starting that are the "larger projects" planned for GameSalad. Is there any word on a camera zoom being added to GameSalad anytime soon? I would almost buy iTorque just for this type feature for the projects that call for it. Thanks for the heads up on iTorque BeyondtheTech, time to research iTorque for me, ugh.
  • PhoticsPhotics Member Posts: 4,172
    You can zoom the camera, just change the size of the camera with the related scene attributes.
  • arbtarbt Member Posts: 13
    Photics is right you can zoom the camera but not in an easy way. You have to drop an actor to the scene and modify that instance to get access to the camera attributes of the scene. A Zoom Scene behavior that could do this would be great.
Sign In or Register to comment.