how to make a block?
How do I make a block the player can jump on?
Well, right now you will not be able to easily make a block because of how your level is set up.
Try this tutorial.
@Coder100 um its really longis there a certain place to watch?
well making a platformer isn't super easy @MatthewX
I'll whip up a template for you instead @MatthewX
@Coder100 ok thanks!
no problem! @MatthewX
@Coder100 um its in a different language -_-
its in p5.js which is easier @MatthewX
@Coder100 oh ok
@Coder100 this is rlly confusing, i was thinking if I can make the player rest on the platform based on corrdinates.
@MatthewX well that would be ideal, but remember there is also edge cases, like if the player hit the block but not on top of the block and below the block
@Coder100 oh ok
You will need at least 2 blocks.
1 block is a wall,
the other block is a player.
You have the player, now you just need a block.
I use this function to determine whether 2 blocks have collided:
and call it with