Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Limit object location to group


bartk
 Share

Recommended Posts

Hello!

 

I'm currently making my first real Phaser game, which is about driving a car through a little town. I'm looking for a way to make it so my car sprite can only intersect with the "road" group and the "parking space" group, so that I can't randomly drive on the sidewalks. Is there any easy way to do this? I'd rather not have to create a hundred or so objects to wall off the roads. It should be noted that there is no "sidewalk" group or object, so I can't just enable collision there.

 

Many thanks in advance.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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