Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Don4t45

2
Posts
1
Topics
A member registered Apr 26, 2020

Recent community posts

(1 edit)

last night i figured out one way to achieve it :) the idea was to make an enemy with three different areas (weak spot[head], hurting spot[sides] and killing spot[spikes]), so i just added couple lines of code in func _ready(): and same two lines in _physics(delta):

but your way can be more sufficient probably. thanks, i really appreciate your answer





Hello,
How to switch sides of enemy's weak spot (collisionshape2d) when it approaches some cliffs and turns around?
I'd like to add one more collisionshape for worm's spikes with different effect on player, so my question is how to swap those two different collision shapes when sprite flips in order to kill the enemy by jumping on it's head, not it's spikes?