Jump to content

Search the Community

Showing results for tags 'collisiontile'.

  • 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. Hi everybody! I heard of the awesome features in the new Phaser-release through Twitter yesterday, so I really wanted to play around with it a bit. I'm currently experimenting with a simple platformer (click to play). I'm using Phaser version 1.1.3. The ground is made up of multiple blocks: this.floorTiles = this.game.add.group();for (var i = 0; i < worldWidth; i += 64) { var brick = this.floorTiles.create(i, worldHeight - 32, 'brick'); brick.body.immovable = true; brick.body.allowGravity = false;}The player collides with them vertically just fine, but also horizontally if you start moving left. I know that this is a common problem with collision systems and each implementation/engine has its own way of going around this. How can I avoid this unwanted horizontal collision in Phaser? Also: I can't jump if I'm on the ground – jumping in the air works, though (press SPACE). Any idea on how to solve this aswell? if (this.cursors.jump.isDown && true) { this.body.velocity.y = -500;}Full code: game.js / player.js Thank you very much for your help. I'm enjoying Phaser quite a bit already, I just need a little help getting started. Thank you! Max
×
×
  • Create New...