Picture View

GingerBGamesGingerBGames Member Posts: 390
edited November -1 in Working with GS (Mac)
Hello GSer's,

Has anyone successfully created a picture viewer? One like you use for say...surfing the web on you ipod touch. I want to do that, only with photo's and text. I want to be able to pinch to zoom (and have it stop at a certain width and height). Then be able to (with one finger) drag the photo around, so I can read all the text on the photo.

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi GingerBGames, i'm guessing this'll be for the iPad? Either way, although a pic slideshow is no problem, or any other series of pics, as thumbnails to choose, for instance, this would be pictures already imported into GS. At the moment there's no way to import into a GS game app running on an iDevice. So for already imported pics, dragging them around would be no problem at all. As for pinch and zoom, I've a sneaking suspicion that this isn't impemented in GS at the moment. Sorry if that's disappointed you...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • GingerBGamesGingerBGames Member Posts: 390
    Thank you.
  • GingerBGamesGingerBGames Member Posts: 390
    Actually what i'm trying to do is this. I have a picture that's starting at a size of 1024 x 768 before it goes into GS. When I import the picture into GS, I have it set to ipod portrait view, and 480 x 320. Then I have an actor, "Next", to turn the page when pressed. The problem is that you can't read all the words on the picture because it's not large enough. I don't want to start the app and have a out of screen sized picture. I want it to start off as the size of the ipod screen and then somehow the person(s) be able to enlarge it to read all the text on the picture, and then hit the Next button to go to the next picture and do the same thing. I'll have the ability to drag the photo, so you can see the entire photo and move it around however you want. That part is done.
  • GingerBGamesGingerBGames Member Posts: 390
    Even if someone knows of how to click to zoom in and it stay at that size until the zoom button is clicked again, and it restores to original size.
  • wayneh001wayneh001 Member Posts: 300
    Hi GingerBGames,
    Pinch Zoom can be achieved by calculating the Magnitude between two touch points on the device.
    To demonstrate I've uploaded a Template which may help further.

    http://gamesalad.com/game/play/65376

    Note: Needs to be tested on an iDevice to see results.

    Template demonstrates:
    -Two finger Pinch to Zoom in, out,
    -Single Finger drag
    -Two finger Rotate. (The rotate option can be disabled by turning the [ApplyRotation] Attribute to False).

    Wayne
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    wayneh001 said:
    Hi GingerBGames,
    Pinch Zoom can be achieved by calculating the Magnitude between two touch points on the device.
    To demonstrate I've uploaded a Template which may help further.

    http://gamesalad.com/game/play/65376

    If I may jump in here: that's excellent, Wayne, as is your other uploads, all of which you've generously allowed for download for others to study. Thank you for sharing, I've learnt a lot from them!

    Hi GingerBGames, I thought this was an interesting problem, and so I worked it out with a test. It's not as sophisticated as Wayne's, although it does toggle from Zoom to Reduce with a button (and this is only from the centre of the image every time, but I'm certain that the Rules can be altered to take into account zooming from actual touch x,y locations).

    Anyhow, It'll be uploaded and the link given in five mins, if you'd like to take a look.

    :-)

    (Five minutes later...) OK, it's at

    http://gamesalad.com/game/play/65386

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • AfterBurnettAfterBurnett Member Posts: 3,474
    wayneh001 said:

    Pinch Zoom can be achieved by calculating the Magnitude between two touch points on the device.
    To

    Blood is coming from every orifice in my head... my brain has indeed imploded...

    WHY DIDN'T I CONCENTRATE DURING MATHS AT SCHOOL!?!?!
  • GingerBGamesGingerBGames Member Posts: 390
    Thank you, thank you, and thank you! I've been working on this all day long (even at work, heehee). I've managed to get a zoom in/out. I had to take the drag option out (boohoo). I've added a pointer to it, I want to allow the pointer to be my camera control. Where it goes, the screen goes. This way I should be allowed to scroll the entire page, only now it seems that I can't get the camera to work, but i'm going to try and look at both of these and study them. Again, thank you.
Sign In or Register to comment.