Picture View
GingerBGames
Member Posts: 390
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.
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
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
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
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
WHY DIDN'T I CONCENTRATE DURING MATHS AT SCHOOL!?!?!