Jump to content

Need help with collision groups!


Circassia
 Share

Recommended Posts

Hi guys. I've recently started to learn Phaser and i think it's pretty awesome but i have a little problem. I'm using P2 Physics. I have an image-based rectangle(1 img for vertical parts, 1 for horizontonal) and 2 circles in my game. One of the circles is player and other one is the ball. I wrote the player and ball collision parts successfully, but when i press SHIFT key(pressing shift means you hit the ball in my game and ball accelerates with speed 400) sometimes ball just ignores the walls and passes them. I spent all my day and night without sleep but i couldn't make it. Some help would be nice, take care of yourselves :)

 

By the way, there is no player and wall collision so i seperated and used them as collisionGroups.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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