playMaker

Author Topic: iTween Shake + Camera Movement?  (Read 3112 times)

MABManZ

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 125
    • MABManZ.com
iTween Shake + Camera Movement?
« on: April 16, 2014, 11:25:19 AM »
Just a little thing that's been itching me for months but I never asked about. I use iTween actions to do camera shakes in my fighting game "Combat Core", but the every time this shake happens, the iTween Move Update action on the camera is overwritten, and the camera will not follow until the shake is finished.

It doesn't use pose a real problem for gameplay unless there's a massive shift in the camera position during the shake (ie. getting blasted across the map quickly).

Is there a solution to this? Should I look into using another tweening library?

Breadman

  • Full Member
  • ***
  • Posts: 185
  • Derp
Re: iTween Shake + Camera Movement?
« Reply #1 on: April 16, 2014, 02:44:57 PM »
Are the FSMs that handle your camera follow and shaking separate? If they're one FSM, make sure to copy over the actions that make your camera follow the player into the states that make it shake - this way it will follow while shaking :D

MABManZ

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 125
    • MABManZ.com
Re: iTween Shake + Camera Movement?
« Reply #2 on: April 16, 2014, 10:37:31 PM »
The shake is called from a seperate FSM...it might be possible to make the shake in the same FSM as the follow but it might be messy, will take some work  :'(