Cocos2D-X CCFollow Camera Example

A small tutorial about how to use CCFollow or Follow. I looked into many forums tutorials but none had a clean explanation so found out myself. Here you go.


  • helios

    thanks for this! (: will try it now

  • Lucones

    Thank you so much for keeping it simple!
    The internet needs more people like you.
    =)

    • metin

      thx for that comment:)
      will continue making stuff simpler

  • Student

    I don’t know who you’re but this save my game and my life. I love you, I want to kiss you lol

    • metin

      thx happy to help, I just hope you are not a dude 🙂

  • Is there some kind of borders ?
    Works fine in original area, but goes crazy out side.
    I have my main object rotate and set velocity towards where i touch or click. So the hover car rotates and start moving towards where i click. Works fine in original area but once start to go further, it starts not working, object start going back. Makes no sense
    Much appreciated any help 🙂

    • metin

      Yes there are borders so to say, I think your problem is with positioning, check if your cars position is updated properly.

Recent Posts

Recent Comments

Categories