Collision Template
This cart is a small template for ground collision!
I struggled with learning collisions for about two years in the past. And I do not want for ANYONE to go through that, EVER!
This is the cart I used to learn. I really hope it will help someone, it sure helped me!
The comments I left in the code try to explain what's happening as best as I could
Quirks
I used table:function()
instead of table.function()
.
What this means is that the function is called with a secret argument, self
!
I also used num \ other_num
instead of num / other_num
.
That is floored division
! If either numbers are decimals, they will be floored down.
Controls
Jump with the O key
Move with the dpad.
[Please log in to post a comment]