Animating a Camera Controlled Actor

dominic.koponendominic.koponen Member Posts: 22
edited June 2012 in Working with GS (Mac)
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! :)

Best Answer

  • PhoticsPhotics Posts: 4,172
    Accepted Answer
    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

  • dominic.koponendominic.koponen Member Posts: 22
    Yeah that is the method I ended up using! The only problem I was having was being able to have the camera animated based on non-direct interaction with the camera. Basically, I needed to have rules that would check an attribute INSIDE a table but this functionality is not available yet :/ I can only change it right now. Hopefully it comes out in a future update!

    Thanks for the response! :)
Sign In or Register to comment.