Hello everybody.
I'm reeeeally new to Construct 2 and I'm producing a platformer like Megaman using free internet stuff.
So, I want to know how do I make the character go back a little when an enemy hits him (just like in Megaman). I managed to do it in a way, but it's not as dynamic as I want.
This is the system I created. When the character (Jogador, I'm brazillian so it's all in portuguese) is overlapping at offset +1 pixel or -1 pixel he moves to opposite sides. But he just moves, he suddenly moves to the side, he doesn't "slide" dynamically to it.
So, to be clear, I would love if someone could help me making a system in which the character, when hitting an enemy, do a little jump to the opposite side and stay in place for some miliseconds. Thank you
drive.google.com/open
This is the capx file. All the variables and objects are in Portuguese and the version is r229