Animating a Camera Controlled Actor
Hello All,
So I have a menu scene that I would like to animate the camera by the press of a button. So basically I need to control an actor that has a Control Camera function. Ex: Press Button A -> Actor Moves to this Coordinate and Camera Follows. My problem is getting one actor to react by another actors function. I know I could use the overall games attribute list, but for organizational purposes, I do not want to use this. I would have WAY TOO MANY attributes so I want to use the tables (One table for each menu and all of its attributes). How could I get this "Button A" to change a table values which then triggers an animation from Camera Controlled Actor.
Any Suggestions? Thanks!
So I have a menu scene that I would like to animate the camera by the press of a button. So basically I need to control an actor that has a Control Camera function. Ex: Press Button A -> Actor Moves to this Coordinate and Camera Follows. My problem is getting one actor to react by another actors function. I know I could use the overall games attribute list, but for organizational purposes, I do not want to use this. I would have WAY TOO MANY attributes so I want to use the tables (One table for each menu and all of its attributes). How could I get this "Button A" to change a table values which then triggers an animation from Camera Controlled Actor.
Any Suggestions? Thanks!
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
Best Answer
-
Photics Posts: 4,172
You could use an invisible camera actor, which can move based on table data. One column is X and another column is Y. Just set the row, based on user input, and then the actor could move to that new location.
It seems like you have the solution already. It's not clear to me where the problem is.
Additionally, if this is a menu, I'm surprised that there aren't patterns. Example — If each scene is 480 pixels wide, then the invisible camera actor only needs to know which panel you're on. That way, the X position of the actor could be game.panel multiplied by 480.
Answers
Thanks for the response!