Jump to content

Collide Only With Left/Right World Bounds


oliversb
 Share

Recommended Posts

I am trying to find an efficient way to collide only with left or right world bounds. I have tried copying and editing the collideWorldBounds method into something that supports it and including it in the update method of object instances but I find it just gets stuck on the edge of the screen. Maybe this is because there is a specific order of how things are being processed in Phaser?

How do I could I create an efficient method for collideWorldBounds that lets me choose specific sides of the screen?

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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