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
I am currently learning the engine and making a test Platformer. In this game, the play area is bigger than the screen and there are platforms with enemies outside the player's screen. I have set up edge markers to stop the enemies from walking off a platform according to the tutorials.
The problem I have is that enemies that are off screen seem to randomly disregard the edge marker, making them walk off the platforms. Can anyone help me?
Thank you in advance!!
I think it's the jump-through behaviour that's causing the problem, your edge markers seem to work fine if you swap out the jump-through with a solid. Not sure why the behaviour isn't working though, sorry.
Develop games in your browser. Powerful, performant & highly capable.
Yes it true, if the tiles are solid then the enemies function fine, although this is not the behavior I need for this game. Thanks for giving it a shot Nimtrix.
I had another look and found a possible solution. If you open your enemy object's animations and set the collision polygon to bounding box it should work. (right click in collision window)
Thanks Nimtrix, this worked. So far the game is stable. Again thank you for the help. If I find any solution to a custom collision polygon problem, I will post it here.
Again, thanks for your quick assistance.
You should use an invisible rectangle sprite for the player and enemy movement with the animations as a separate sprite pinned on top to avoid things like this.
See the "Implementing reliable platform movements" part of the platform manual page:
Thank you ramones. I will try this as well.