Custom Platform Movement

0 favourites
  • 9 posts
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • I just created some custom platform movement:

    <img src="http://screensnapr.com/e/Nb3huw.png" border="0" />

    And I wondered if anybody has any ideas for improvement?

    There seems to be some glitches like: I can slowly walk through the side of the "Block" object and when I'm fully in it then it slowly falls down.

    I know this is possible to do custom movement, I'm pretty damn sure (99%) that people do it in there 2D games all the time.

    Thanks!

  • Anyone?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It would be alot easier for the others to "check" you code, if you'd post the CAPX

  • It would be alot easier for the others to "check" you code, if you'd post the CAPX

    That IS ALL the code in that image.

    EDIT: Of the player, the other code is all GUI stuff etc.

  • Remind me of a custom platform movement I did before the corresponding behavior was created.

    Did you do that as an exercise?

    You should use dt to ensure smooth and non fps-dependant movement.

    add 50*dt to xSpeed will add 50 per seconds but bit by bits every tick ('cause dt is the time between two ticks)

    And then set X to player.X + xSpeed*dt you will go at xSpeed px/seconds

    Also as Weishaupt said it's better if you provide the capx, there's some other information we need to judge your work or at least to try it.

  • Remind me of a custom platform movement I did before the corresponding behavior was created.

    Did you do that as an exercise?

    You should use dt to ensure smooth and non fps-dependant movement.

    add 50*dt to xSpeed will add 50 per seconds but bit by bits every tick ('cause dt is the time between two ticks)

    And then set X to player.X + xSpeed*dt you will go at xSpeed px/seconds

    Also as Weishaupt said it's better if you provide the capx, there's some other information we need to judge your work or at least to try it.

    Thanks gonna try that now, The thing is the capx is my major game that I would not like to get released publicly.

  • Well:

    <img src="http://screensnapr.com/e/sYWMPy.png" border="0" />

    It seems to be now glitch free :D

    It just needs some more work to make it better, thank-you guys/girls!!

  • You sure you don't want to use the in-built platform behavior?

  • You sure you don't want to use the in-built platform behavior?

    I need to design custom movement, Since built-in one when it collides with Block it would stop, and I want it to only stop if the block animation is equal to certain values. Plus this is my first ever attempt in game-creation at custom movement, so it's interesting and exciting! <img src="smileys/smiley17.gif" border="0" align="middle" /> <img src="smileys/smiley17.gif" border="0" align="middle" />

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