Advanced combat

Well, i wanted to add advanced combat to a game. my first idea was if enemy gets knocked back and hits a wall, he’s vulnerable for a moment and player can land a very powerful hit. but i couldn’t really get further than animation on hitting the wall. any ideas? by powerful hit i mean dash and attack.

If you already have an animation for the enemy hitting the wall, then it should be easy enough to disable them too. It just depends on the movement system for your enemies. The most basic solution would be to prevent them from moving during the animation, but you could also make a separate variable to keep track of it without being tied directly to the animation. Just add a condition to check the animation or variable before allowing the enemy to move/attack/whatever

Now if you want there to be some sort of “triggered” attack, or in other words the player can execute a special attack only after knocking an enemy, then you may have to think about some more complex conditions to properly check for that. Again it depends on your attack system. For example if this attack will automatically dash towards the enemy, then you might just check for a disabled enemy within a distance. On the other hand if the player needs to aim at the enemy then you could use a raycast or projectile to check for a proper target.

Sorry, but i am using Gdevelop for 1 month now. I honestly don’t know how raycast works. But yeah, i watnted that attack to trigger when player is looking at enemy and uses LMB.

Well, iknow what it IS, but i have no idea how to use it :face_with_diagonal_mouth:

AND, how to stop an enemy that uses patchfinding for movement? =/