Jump to content

Search the Community

Showing results for tags 'tunneling'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello everyone, I've started to experience some glitches with the arcade physics system. Here is the game, so you can experience the problems yourself, and the GitHub if you'd like to look at the source: preece.github.io/Frauki https://github.com/Preece/Frauki 1) When the characters velocity is high and they are pushing against a wall, they tend to fall through the floor. As I lessen the velocity, I can see them start to dip down into the geometry of the world, and then pop back up at the last second. For example, if you walk against a wall (arrow keys), then roll (x), you will dip into the geometry a little bit. If you roll and then immediately attack (z) you will do a stab. This stab moves you quite fast, and for me, drops me through the floor almost every time. One possible contributing factor is that I am tweening a variable to have a certain shape of change, and while they are in one of these states I keep their velocity locked to that value. Could this have something to do with the problem? Tween on the motion of this.movement.rollVelocity (to which x velocity is entrained): this.tweens.roll = game.add.tween(this.movement).to({rollVelocity: dir * PLAYER_ROLL_SPEED()}, 50, Phaser.Easing.Exponential.In, false).to({rollVelocity: dir * PLAYER_SPEED()}, 300, Phaser.Easing.Quartic.In, false); this.tweens.roll.start();PLAYER_SPEED() and PLAYER_ROLL_SPEED() are on the order of 700-1400 2) After upgrading to 2.2, the character "bounces" in a strange way when they land, but only sometimes. If I watch the y velocity, it goes to 0 when they hit the ground, as expected, but then spikes to 13.333 a few times. When you crouch the character (down arrow), it does the same thing but for occasional single frames it goes to 26.666 on some frames, and 13.333 on others. This leads to a weird sort of bouncing. If you open the console right now, it will simply print the y velocity every frame so you can see this happening. 3) I am using the camera function FocusOnXY to move the camera around relative to the character. In this way I am getting a more complicated type of movement out of it that is not just locked to the character. After the upgrade, it seems to be somewhat choppy, as if it is not updating as fast as the character is. I suspect this is due to the decoupling of the update loops and the physics system. I wonder if there is a way around this? For any insight you are able to give, I am extremely grateful. Thank you. If you need any additional information from me, please let me know.
×
×
  • Create New...