• Thursday , 20 February 2020

Cocos2d-x JavaScript Tutorial 50 – Using Accelerometer to Move A Sprite

Code Canyon

Cocos2d-x Tutorial 50 – Using Accelerometer to Move A Sprite

Base project code link (Tutorial 49)

Source code link

Glo Breaker (our game developed using cocos2d)

Check out our Cocos2d-x book to learn how to make games https://www.packtpub.com/game-development/cocos2d-x-game-development-essentials .

Hundreds of free videos at

Original source

3d Ocean

Related Posts


  1. wu yan
    August 18, 2019 at 03:48

    excellent tutorial..

    thx and god bless Sonar System..

    a sincere blessing from hong kong… ^__^

  2. Cris Nguyen
    August 18, 2019 at 03:48

    Thanks you so much! 🙂 

  3. BreadedTurtle
    August 18, 2019 at 03:48

    Hi, just finished all your tutorials. They were great! One question. Is there a way to improve the frame rate of the sprite while using the accelerometer. The game framerate is 60 on my device, but moving a sprite with the accelerometer seems to move at 15 – 30 frames or so? Thanks

Leave A Comment

You must be logged in to post a comment.