Rotating Platformer Example, how is this done?

0 favourites
  • 6 posts
From the Asset Store
10 Retro songs ideal for platformers or farming games
  • 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: http://store.steampowered.com/app/293240

    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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check: http://store.steampowered.com/app/293240

    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.

    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.

  • 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

  • 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)