Handmade Hero»Forums»Code
Jan-Erik Platte
1 posts
Day 80 - Sword Collision
Hi,

I just watched epsiode 80 and wanted to outline my assumption of the "sword collision bug".

On day 79, Casey changed the CanCollide() to check if the collides flag of both entites is set. After that the collision rules are still checked.

So as far as I know, if you set the collides flag of the sword, everything should work again, because it can still go through entites after hitting them due to the the collision rule.
Kim
Kim Jørgensen
64 posts
Day 80 - Sword Collision
Yes, if you set the collides flag it will ”hit” the monstar.

However, the sword collision handling is pretty busted. It gets stuck when it travels outside the room and its trajectory when throwing it at the stairwell seems odd :blink:
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
Day 80 - Sword Collision
Yeah I think we don't want to fuss with sword collision until we're going to fix everything :) Let's finish ground first and then we'll clean up the sword collision / other collision things.

- Casey