Hello
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?
CAPX: dropbox.com/s/1mrtrcexzdatvsb/Painter%20Platformer.capx
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.
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)
Develop games in your browser. Powerful, performant & highly capable.
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:
https://www.scirra.com/manual/100/platform
and
http://www.scirra.com/tutorials/253/how-to-make-a-platform-game/page-4
Thank you ramones. I will try this as well.