Help with zoom!

gazjmgazjm Member Posts: 578
edited November -1 in Working with GS (Mac)
I have tried to use the zoom templates to achieve this but with no luck. I want to be able to zoom into something and when I touch it, it registers as being touched. do I need to build the game in a zoomed in mode and then set the camera to full screen afterwards?

Cheers

Comments

  • gazjmgazjm Member Posts: 578
    Anybody had any experience with this type of thing?
  • UtopianGamesUtopianGames Member Posts: 5,692
    You mean like this?



    Darren.
  • gazjmgazjm Member Posts: 578
    yes, like that, I don't seem to be able to get the actor to respond when zoomed in, don't know if its something to do with the x and y positions reading different when zoomed.

    The only way I could think of doing it would be to build the whole game zoomed in, but then they wouldn't work when zoomed out.
  • UtopianGamesUtopianGames Member Posts: 5,692
    We did it by using the 480x320 actor (the background) and zooming to the X Y of mouse.

    Hope this helps.

    Darren.
  • gazjmgazjm Member Posts: 578
    Thanks, I'll give it a try. I was using zoom to x y of touch 1, it might behave differently.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Darren, did you use interpolate camera originX and Y along with interpolate camera Width and Height?
  • UtopianGamesUtopianGames Member Posts: 5,692
    Yes m8 we did, and make sure the scene has scrollable checked.

    Darren.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    thx
  • gazjmgazjm Member Posts: 578
    im still having trouble with this, I can zoom in ok, but I want a button for zooming back out. If I tell it to be located at camera origin x+150 and camera origin y+100, the button appears in the correct place, however it only responds if you click off to the left and below. I've tried using a fixed position, but does the same. Any ideas?

    thanks
  • gazjmgazjm Member Posts: 578
    This is giving me a headache now,

    I've set the interpolate behaviour to change camera to 240 width and 160 height, also used interpolate to set camera origin to mouse position - 120 for x and - 80 for y.

    I basically have an actor which when touched, will rotate by 10 degrees, but so as I can have bigger levels I want to make it so you need to zoom into the actors.

    When zoomed in, the location of the actor stays the same, but it doesn't register a touch. for example, if the actor is a location 200x 50y, then when zoomed in it now registers as being at 400x 100y, if i click in the empty space at what is now registering as 200x 50y, the actor rotates!

    Can anybody help with this? Or tell me if this is a bug in the gamesalad software?

    cheers
  • UtopianGamesUtopianGames Member Posts: 5,692
    Let me check my code m8 give me 5.

    Darren.
  • gazjmgazjm Member Posts: 578
    cheers!
  • UtopianGamesUtopianGames Member Posts: 5,692


    Hope this helps.

    Darren.
  • gazjmgazjm Member Posts: 578
    Thanks, i think i can see what i have been setting wrong!
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Awesome!
  • UtopianGamesUtopianGames Member Posts: 5,692
    Glad i can help.

    Darren.
Sign In or Register to comment.