How do I fix edge markers?

0 favourites
  • 5 posts
From the Asset Store
On the Edge is a puzzle game where you have 40 levels to have fun with.
  • Hello. I couldn't get the most basic thing done for some reason :c

    I have set edgemarkers so that a Cat sprite won't fall off. The right edgemarker seems to work sometimes but once the cat is running to the left it doesn't work at all. The collision polygon is exactly the same width and height as every animation and centered. All the images in the animations are 32x32. The edgemarker also have collision

    ww.dropbox.com/s/ri5xr5t9oblasuv/edgemarkerscreen1.png

    Topleft point: 14,15

    Topright point: 18,15

    Bottomleft point: 14,32

    Bottomright point: 18,32

    Origin and imagepoint: 16,32 (Num-2)

    Here are the events:

    ww.dropbox.com/s/skwnfrbm3t8v32e/Events.png

    ww.dropbox.com/s/cse64tnnotm01e5/Events2.png

    Here's the layout. The player, cat and the edgemarkers are on the same layer:

    ww.dropbox.com/s/6c4zvlyjyp51m01/Layout.png

    Thanks for the help and I apologize for being a newb!

  • You need to do a on collision with edge marker go left, else go right... something like that. It's the else that is the secret... check the basic platformer tutorial for an example. This bugged me forever too.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you for the reply!

    I tried and it's still not working.

    I am thinking the problem might be about the random variants that it chooses as you can see in the event list. (Every second, give a number between 1-10. if the number is 1 or less then change string variant.)

    I guess I will have to remake the whole cat thing and try again.

  • Try it step by step, first get the collision working then add the variants to it once it is working correctly. You should be testing each piece of functionality as you add them, instead of adding a bunch and then testing, it makes it hard to see what broke it.

  • Ok I fixed it. It must have been something with the animation with the cat after all.

    Basically what I did to fix it was to have a CatBox. Similar to the PlayerBox and have every tick put Kitty into the Catbox.

    The CatBox gets to have all the variables and movement.

    Thank you for the reply! Really appreciate it :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)