Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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.