Position Sprites in Circlular Pattern

0 favourites
  • 2 posts
From the Asset Store
Build your map with these isometric objects and terrains
  • Im trying to figure out how to position sprites in a circular matter. So everytime I click it creates a sprite, and sets it to the correct position to continue the circle pattern. I just can't figure out how to find the position where the sprite needs to go to continue the circle and allow the circle to keep expanding to bigger sizes? I'm pretty bad at math, but I guess you could call it a algorithm? I'm not sure. Any help anyone can give me is appreciated. I made this pro text representation to hopefully explain better. Thanks!

    1st Click to 5th click:

    (ignore the periods, just there for placement. the X's represent sprites)










  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Create all the sprites beforehand and make them invisible. Then make one visible every click:

    On mouse clicked

    sprite is invisible

    pick sprite closest to (320,240)

    make sprite visible

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