Platformer style tutorial. How to import files from tiled etc?

Started by
2 comments, last by Finalspace 7 years, 7 months ago

Hi, I'm looking for how to make a platformer... I could make one right now, as I'm proficient enough in coding, but I'm looking for all the rules, laws and terminology for one, a definitive guide.

Now I have my main problem: How do you create the collision detection for the grounds, mostly in the air.

I can obviously do

if sprite touches floaty_object:

don't let the sprite move anymore in that direction.

But I'm looking for a more sophisticated system, thanks.

EDIT: I see a lot of guides on the internet... but specifically looking for a code-heavy one.

Advertisement

Sounds like you have a list of individual topics to study. This is also one of the disciplines of programming (research). Trying to find the all-in-one guide is going to cause you more problems than it solves (even if you do find a guide claiming to be this thing).

It sounds like your initial research has led you to a list of things to study more deeply, so the next step is to research each of those topics individually. Continue this process recursively until you understand all that you need to do.

As for loading from tiled specifically, there are libraries available for this. A quick google search found me one for snek.

void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.
Although this is not the code-heavy guide you are looking for, this is my favorite link on platform games: http://higherorderfun.com/blog/2012/05/20/the-guide-to-implementing-2d-platformers/

Google for "speculative contacts platformer" and you will find a very good resource.

This topic is closed to new replies.

Advertisement