Jump to content

help with game


skaplun
 Share

Recommended Posts

hey guys,

Hoping I could get some help from you :)

 

I'm creating a bumper objects prototype game for mobile with Phaser using P2 physics and I have two challenges:

 

1) I want to be able to detect on which side an object is hit. So that if an object is hit from the side or back it explodes, and if its hit from the front nothing happens. How would I approach this?

 

2) I want the object to follow the direction / speed of the swipe. How would I do this?

 

 

Thanks!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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