Observable Flutter: Hit boxes and pathfinding

preview_player
Показать описание
Watch as Craig adds hit boxes and pathfinding to his infinite zombie shooter game. Will he figure out how to get this working? Tune in to find out!

#ObservableFlutter
Рекомендации по теме
Комментарии
Автор

I tried to handle this with the oncollision event, but it was too difficult and had many bugs.
This video gave me an idea to solve it. thanks

ouya
Автор

Super excited to start this myslef!! ❤

asif_imtiaz
Автор

Really great content, you have a new fan to your show :)
I do have been struggling though, the collision detection piece doesn't seem to work with newer versions of Flame and got me stuck in the one used here (just sharing in case it has been the case for someone else)

Fray
Автор

Why did you not just create the polygon boundary around objects with a padding? then you don't have to worry about walking "into" the object...And the anchor for the player should be bottomCenter which makes it possible for the player to walk up to an object like a wall or fence while drawing the the upper part of the player above the object like real perspective.

UltimateLogbookApp
Автор

I think you’re trying to make the zombie too smart. In zombie movies they just walk straight. When they get to the unwalkable terrain they could just do what the player does.

kuntiki