Camera Tricks Demo

crapscraps Member Posts: 353
edited November -1 in Working with GS (Mac)
Playing with Fire Maples Camera Tricks Demo I have learned a lot. I am especially interested in the zoom feature. Have added it into my project making multiple "hot spots" which will zoom in.

What is the trick to locate the exact x,y position for the camera to zoom to and match the "hot spot"?

Is the offset? How do I figure that into setting the camera x,y coordinates.

Thanks.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Yep you will have to figure out the camera origin setting for the zoomed camera size for each of your "hotspots"
  • crapscraps Member Posts: 353
    Is this just a hit or miss concept or once I know a couple of hot spots I can make up a grid or is there a more sound way of doing this?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Layout a grid should be very easy. Basically the camera origin is the x and y points of the bottom left corner of the camera in the scene so doing a grid would be pretty simple. It's just gonna take some time and math.

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • crapscraps Member Posts: 353
    Came up with a quick reference for myself to zoom a 480 X 320 camera to
    120 X 80 camera onto a "hot spot" actor compensating for the camera offset.

    1. find the location of the actor
    2. interpolate the 120X 80 camera to actor X minus 60, actor Y minus 40.

    For a super zoom 480 X 320 camera to a 60 X 40 camera.

    1. find the location of the actor
    2. interpolate the 60 X 40 camera to actor X minus 40, Y minus 20.

    It works fairly well.

    But I do have one problem. My "reset" actor (of course) increase in size when the camera zooms. If the actor in invisible - it does not matter - but if I want to have an actor button how can I have the actor stay the same size?

    THANKS
  • mangaroomangaroo Member Posts: 419
    i solved this by interpolating the size of the actor at the same time - just about to hit the hay but ill drag it out for you tomorrow - can work for everything except for Display text
  • crapscraps Member Posts: 353
    Okay - I have all my clickable hot spots set up.
    Each spot is set up to interpolate from 0 -1 when clicked.
    How can I click again to make it go from 1 - 0 or is it better to back a back button?
  • Rob2Rob2 Member Posts: 2,402
    change attribute
    game.click to 1-game.click

    is the simplest way of getting a 1/ 0 toggle
  • crapscraps Member Posts: 353
    The ability to constrain the size of an actor when zooming really bothers me - is there a fix for this?

    The clickable area appears to remain the same size and only the actor increases - I want to have an visible actor there.

    http://gamesalad.com/game/19574

    zoom on the wall actors - reset with the left lower corner actor
  • crapscraps Member Posts: 353
    Here's what I have for my hotspot actor that I need to interpolate back to 0 when touched again.

    self.color.alpha to 0
    Rule - touch is inside
    CA - game.logbook to 1
    Interpolate - self.color.alpha to 1
    Interpolate - self.size.width to 300
    Interpolate - self.size.height to 300

    ??? to get it back to alpha 0 with touch?
Sign In or Register to comment.