Need help with creating an enemy that knocks back the player character if the player character touches it from the left and right or jumps on it.
Maybe someone has an example file with this?
Develop games in your browser. Powerful, performant & highly capable.
You can use vector x on platform behaviour for this, so if enemy collides with you from the right side you would say player set vector x to self.x-20 or something. The 20 is number of pixels so you use this to adjust how far you are knocked back.