0 Favourites

Rotating Platformer Example, how is this done?

  • Hello everyone! I have a question I just cant figure out the remedy for. I like this game in the Arcade http://www.scirra.com/arcade/addicting-rotary-games/782/buildvival-sandbox-builder.

    It is a rotary example, where a character rotates around a circle, but how can you achieve this with checking the collision on a circle? There is no way the circle has tons of collision points all the way around the entire circle. I cant find out how this was done.

    Any help is appreciated!

  • Check:

    Every Tick: Player > Platform Behavior > Set Angle of Gravity > angle(Player.X,Player.Y,Planet.X,Planet.Y)

    Every TIck: Player > Set Angle > angle(Player.X,Player.Y,Planet.X,Planet.Y)

    Player is simple player controller with platform behaviour

    Planet is solid shape with 'rounded' polygon collision. If you look at your example while you're running you are actually going up hill then downhill then uphill then downhill.. Those are the peaks / points in the collision shape.

  • Check:

    Every Tick: Player > Platform Behavior > Set Angle of Gravity > angle(Player.X,Player.Y,Planet.X,Planet.Y)

    Every TIck: Player > Set Angle > angle(Player.X,Player.Y,Planet.X,Planet.Y)

    Player is simple player controller with platform behaviour

    Planet is solid shape with 'rounded' polygon collision. If you look at your example while you're running you are actually going up hill then downhill then uphill then downhill.. Those are the peaks / points in the collision shape.

    80bit

    Hey thanks for the tip! Is there a way to allow rotating around a circle without that up and down motion?

    I understand it will probably have to be some math involved, as I might have to check for the distance the player is at, and the circle radius making a collision.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 80bit I saw that game before and I was really interested but I didn't know it was made in C2. How long did it take you to make that? Have you made an other games?

  • you could do it like this but, little tricky it will get once you add more movements etc

  • 80bit I saw that game before and I was really interested but I didn't know it was made in C2. How long did it take you to make that? Have you made an other games?

    Ive been working on this game since about November last year. So almost a year now.. It's my first 'real' game. Anything before this was just experimenting with C2 for a couple years.

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