sprite kit - Kind of platformer game in Spritekit -


I have read that using a physics engine may cause many problems in the game of programming platform type.

I am creating something similar to platform games (not classic platform).

  • The game will have platforms, but not many.
  • Game
  • The game will be stairway
  • Hero can shoot foes
  • Hero can jump
  • Hero can reach the stairs by air

I have to choose between physics engine and tile tehnick ...

The first problems I can think of:

  1. Problems with physics engine and ladder because the rules of physics are applicable to the protagonist and their movement, I think That it must it have to work hard to pick up on the ladder, while the physicist body has been set so the dynamic properties.

  2. The problem with tile tehnique - how to make a hero falling from the drain while running) Realistic arc (when we use physics, it is done by the engine ...)?

And the main problem, based on the type of game I am making, is Shol I call tiles Tehenk (Let's walk to the hero) and to find the collision Physics Engines for combing engine, and enemies?

I know there are so many questions about this subject, but I should start with something ...

Tnx in advance

< P>

I would recommend physics engine this is very straightforward ... what you normally expect is what happens

Run, jump, shoot, fall, etc. - It is very easy to use the physics engine.

The stairway will become problematic, but you can set a bull flag so that you can know when the stairs and the hero are touching, so you should allow different behavior to display, if Whether this bull is right or not. East. Do not affect the hero by gravity touching the stairs.

It is very clever that you are planning ahead of time and you have outlined all your core requirements. IMHO, the remaining requirements will be so easy to use the physics engine that it is Will be more than the extra time spent on the difficult part.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -