Drag to change scene perspective (is this possible?)
Hi guys,
Is this possible?
Can you have a scene that's built up of a couple of layers that when you click and drag your ringer over the screen it changes the view slightly?
For example, the scene maybe of a forest, by dragging your finger over the screen it slightly moves the perspective of the area?
I assume things would have to be linked to a camera so the camera changes with a touched invisible actor when moved?
It's a cool effect that I've seen in a couple of games, I was just wondering if anyone had attempted such an effect in GameSalad?
Cheers
Chris
Is this possible?
Can you have a scene that's built up of a couple of layers that when you click and drag your ringer over the screen it changes the view slightly?
For example, the scene maybe of a forest, by dragging your finger over the screen it slightly moves the perspective of the area?
I assume things would have to be linked to a camera so the camera changes with a touched invisible actor when moved?
It's a cool effect that I've seen in a couple of games, I was just wondering if anyone had attempted such an effect in GameSalad?
Cheers
Chris

Answers
I saw this displayed really well in a kids app I saw a while ago, I will see if I can get the name as it was a really cool effect, and maybe one that other GameSalad users would find useful too.
Cheers
Chris
If you can find a YouTube video or something so I can see what you mean, I'll have a go.
Ace
Thank you for your comment.
I didn't really explain myself very well at all, so dont worry, you're not being dumb :-)
I've actually found an example on YouTube that shows what I'm wondering is possible really well.
This example actually shows someone tilting their device to change the perspective, of you scroll into about 5:15 of the video, you will see the effect:
If you want to swap details, we can have a go at working it out together if you like.
Cheers
Chris
Cheers everyone.
Chris
Cheers,
Chris
you could do this, but it would have to be manual :P you would have to program every single actor in the scene to move a different amount/grow a different amount based upon their position (depth) so like a parallax background but way harder for every single direction and actor for every layer :P
anyway good luck
http://www.funkymunkygames.com/GameSalad/search/
http://www.mediafire.com/download.php?bh0aerheb088tuv
Warning: it is a 3.8mb file (due to some unoptimized graphics) so it takes a while to download. It was an interactive book based upon Rikki-tikki-tavi I was doing last August.
Basically the idea is to have each object have its own distance. (US inches for me.) Then when the device is tipped just enough, it sets off a moveto behavior using the formula:
self.originalX -(1000/self.distance).
Otherwise, when it is tipped back to level, there is a moveto behavior that moves the object back to self.originalX
So, each object moves a little less as its distance increases. The 3D illusion seems better on an IOS device, rather than viewing it on a monitor.
Maybe it will be useful?