Jump to content

Moving the camera or making it follow the player makes a newly created object with physics go flying.


owaru
 Share

Recommended Posts

still camera

add 

game.camera.follow(player, Phaser.Camera.FOLLOW_TOPDOWN_TIGHT);

or move the camera anywhere and this happens to my head

follow camera

The head following my body is a child and when I press 'C' I kill that child and make a new sprite in it's place give it ARCADE physics, gravity, etc. You can see it work like a charm in the first gif.

What causes this ? I really want to use a camera, what do you recommend ?

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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