Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.