Jump to content

Game Camera auto scroll up


shohan4556
 Share

Recommended Posts

That should work. Try adding game.camera.unfollow() at the end of your create function. If that works then you've set the camera to follow some sprite earlier in your code(it may happen if you're using some example/template as a starting point.

Link to comment
Share on other sites

That should work. Try adding game.camera.unfollow() at the end of your create function. If that works then you've set the camera to follow some sprite earlier in your code(it may happen if you're using some example/template as a starting point.

It works only when I move my hero up otherwise not. I have an idea that is create an hidden sprite give it velocity.y -=value and make camera to follow it .but its not working. actually I follow this way http://codepen.io/shohan4556/pen/KdPVNd?editors=001 but the camera follow should going up forever automatically without respect the hero. 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...