Platform behavior skipping small walls

0 favourites
From the Asset Store
Wall Pin Board is a hyper causal game developed for fun and inspired by YouTube video whose link is given in description
  • Link to .capx file (required!):

    dl.dropboxusercontent.com/u/41931267/PlatformStepping.capx

    Steps to reproduce:

    1. Run towards the staircase

    Observed result:

    Player skips steps in a manner roughly equivalent to its speed.

    Expected result:

    A 2px high wall should stop the player. HOWEVER this would break a LOT of projects, and I'd suggest just giving the user more control over this aspect of the behavior.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Windows 7 64bit

    Construct 2 version:

    r127

  • Sounds like this is exactly the same problem as I have. If the framerate is low my character jumps through the walls.

  • same with high speed bullets

  • nemo Notsu I think your problem is different, and a natural consequence of the collision system. At low framerates, it makes perfect sense that bullets etc would move through walls. If you look at my capx, however, you will see that this issue is different.

  • I maybe presented my problem in a wrong way. My character "Walks" on a platform moving with steady speed and suddently takes huge teleporting leaps to random locations on to some other platforms. This happens only with the platform movement behavior. Everything's ok with the bullet behavior. I tested your capx but i didn't really understand if you were after a pixel perfect collision or what exactly was the issue? If you meant that your player object teleports from one stair to another, then that's what my problem is.

  • nemo I wouldn't use the word 'teleport' but it does seem to ascend the stairs when it's going fast enough. It really shouldn't go past stairs higher than 1px.

  • TELLES0808 this isn't related to large objects or complex collision masks.

  • The way I interpret this: The platform movement behavior is a black box and you really aren't given any definitions for how it should behave under any circumstances. You might even say it's undefined. Therefor it's perfectly legitimate for any particular use of that behavior to make demons come out of your nose.

    Yeah, it's a weird behavior you've shown here and there isn't really any particular reason to think it's intentional, but it's not necessarily a bug. If you don't want weird inexplicable crap to happen, you have to program your own behaviors in a way that you can understand.

  • It's probably how the platform behavior handles steps(movement checks), slopes, and speed.

    Platform is moving fast, so it's step interval is higher (checks ahead of itself specific amount of pixels) and based on a ratio it determines if it's possibly a slope they are traveling on.

    Well, that's what I assume after playing with Custom Movement plugin a little bit.

  • I think this sorta works, as a workaround - it would be cool to specify a 'passable step' dimension for the platform object though.

    Example

    Download

  • JohnnySix I'm confused, it doesn't seem to work for me.

    And yes, ultimately I'd like the platformer to be able to hop over a certain max size step at any speed.

  • It skips steps below 12 pixels, you can adjust it so the gap is less.

    I may have missed the point though, do you want it to stop when it hits a 1px wall, or move over it?

    I removed the odd time when it stopped. <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • JohnnySix ah, I see! Very nice!

    For some reason it doesn't work at very low speeds, however.

  • Squiddster, did JohnnySix's example solve your problem?

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