Is it possible to "shake" CCFollow?
Is it possible to "shake" CCFollow (Camera)?
(6 posts) (3 voices)-
Posted 1 year ago #
-
Simple Answer: No, you cannot 'shake' CCFollow.
But, you can shake the object you're following.
Or move the layer manually(don't use CCFollow) to follow an object and 'shake' the layer manually as well when you'd like.
Posted 1 year ago # -
Yeah you might have to maybe extend follow to support shaking. The issue is that when you change a position you can't easily add to it's change.
A similar small test you can do to see is to try and run 2 move to actions. One that goes straight left and another that moves up and down quickly to simulate a shake. You'll notice that only one move action works since the 'position' is always overridden by one of the actions.
Posted 1 year ago # -
What about CCCamera?
Posted 1 year ago # -
What about CCCamera? What do you mean?
Pretty sure working with CCCamera would be much more difficult that moving the layer as necessary. (FYI, CCFollow, at its core, moves the layer if I'm not mistaken)
Posted 1 year ago # -
Ok.
I am just trying to imitate an earthquake in my game.Posted 1 year ago #
Reply
You must log in to post.