Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

For standing still while being hit, in the enemy's objects page, at the being hit action box, turn on the "ignore move input during motion and ignore direction change during motion"

For knockback, it is a little complicated, and there are multiple ways to achieve it. Below is one of the solutions. 
1. Create a switch for the enemy, something like "knockback".
2. Add "lock object" to your player's attack action, turn on "lock objects touched by this object's attack detection."
3. In your player's final attack action, add "change switch/variable", select "change switch", "locked object", turn on the enemy "knockback" switch.
4. In the enemy's being hit action box, add a link to the knockback box, in the link add "switch/variable changes" select "object self", "knockback" is "on"
5. In the knockback action box, add "move towards display direction" and then set how many pixels you want the enemy to move, and select "move in reverse direction"
6. Add "release lock" for your player
7. Turn off the knockback switch at the end of your enemy's knockback

So basically your player character needs to know which enemy he is hitting, then at the end of the combo, turn on the locked enemy's knockback switch, so the enemy knows when to knockback.

You can also achieve the knockback function by using "variable" or attribute in "attack settings".

Hope this helps,

Ricky

thanks. You are the first to help and I'm thankful because I didn't know what else to do. So a beat em up is possible with the right help. Thanks again 

you are welcome. Try watch the tutorial created by baz from the link below.

https://www.youtube.com/playlist?list=PLjyKjxGVrnPWfJL_rXaiQDrdhhWEVg8Pt

Thanks again.  Did you create your own pixel art for that game? If so it looks incredible.  Do you make custom characters for games  if so?

Yes, I create all the pixel art for my game. I am a pixel art hobbyist with zero programming background. Unfortunately, I don't do art for other games.

how did you make your character walk up and down on the stages? I can only walk left to right 

You probably choose the wrong game type. Make sure you select "top view action". Or you may open the beat 'em up game sample and see how they create the game.

Hello. Do you have a ideal how to grab a enemy and throw them?

is there anyway to use multiple sprite sheets for a single character in pixel game maker?

Yes, you can. In animations > animation settings > register animation resources. You can add multiple sprites sheets.

Btw, you can use "change object" function to change you character too. Like when your character obtain an item then transform to another character.