Demos > PLATFORMER TUTORIAL


Demo made for tutorial @ infinitelimit.net
made by trelemar
uploaded by trelemar
added:
download cartridge

10


This demo was made to follow along at:

https://www.infinitelimit.net/article/simple-platformer-tic-80

Comments


CrazyFox

Hey, I'd just like to thank you for this tutorial.
I learned a lot by dissecting it in every way I could think of.

Now I just need to figure out smooth scrolling...

trelemar

#240 Thanks! I'm glad you found it useful. I actually wrote a camera tutorial that should help you with smooth scrolling as well, here's the link: https://tic.computer/play?cart=161

fromlowrescoder

how do i add new blocks of diffrent colors and have collision detection for them?

fromlowrescoder

oh nevermind


oscar1000108

There seems to be an issue where you can clip 1 pixel into a corner.
To reproduce: get to where the player is in this screenshot: https://cdn.discordapp.com/attachments/424244220988227585/455049946270531595/unknown.png and hold right. You should get stuck in the corner of the platform below.

Trianull

The landing and wall scripts are a bit unoptimized, leading to clipping and the dreaded "Fake Landing" (The landing that kills your momentum before you fully land)
To fix landing, have ground detection happen after you go into the ground, and use a while-do script to push yourself back to the surface. Similarly for walls, use a direction variable and push yourself out according to the direction using another while-do script.
Hope this helps.

willowcat2010

But could you teach me how to make the map? I'd really appriciate.

MilkBoi

I found that when I tried to jump it would not allow me to jump, for some reason btnp(4) wasn't working for me. What I did was change btnp(4) to btnp(up) and this solved the problem. Why did this happen, and is there a better way to fix my problem?



Post comment