team-zhsa / zelda-hsa

The Legend of Zelda: Hyrule's Adventure
Other
2 stars 0 forks source link

Fix enemies not going down one layer when there's no ground #198

Closed team-zhsa closed 7 months ago

team-zhsa commented 8 months ago

Enemies (on layer 1 for instance) can walk on air even if there's ground on layer 0 but nothing on layer 1 The hero will fall to the lower layer because of the empty ground but enemies will walk normally as if there were a traversable ground

Possible fix:

Donc pour faire tomber l'ennemi d'une couche, une possibilité est de mettre un événement du style enemy:on_position_changed() qui teste si le sol en-dessous de l'ennmi est du vide, et si oui, qui le baisse d'une couche