Circular Layout Boundary

  • I want to make the layout boundary a circle for a space type battle game. Thing is you need to be able to collide with the edges as if it were a solid type object. The layout is extremely big (6000x6000), so 4 large quarter circle images would not really be efficient would they?

  • Well, each quarter circle would have to be 3000x3000. Which I think is bigger then the recommend size. Of course you can simply cut the images up into smaller parts. If it's not for mobile, I wouldn't worry about performance so much with just those images. You could also use a smaller image for tilling and make a circle of solid objects (invisible or not) around whatever it is your doing. Not sure what your asking beyond that though.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • How could I make a circle of solid objects with tiling?

  • Just test the distance(x1,y1,x2,y2) from the center of the layout.

  • If you want a circular collision of diameter 6000 centered in your layout, you don't need any sprite with solid behaviour.

    The only thing you need to do is to make sure that the distance between the ship and the center of the layout is less than 3000

    Here's how you could do it:


Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)