Camera Tricks Demo
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.
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
___________________________________________________________________________________
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
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
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?
game.click to 1-game.click
is the simplest way of getting a 1/ 0 toggle
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
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?