Jump to content

Search the Community

Showing results for tags 'hasTile'.

  • 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 2 results

  1. I was trying to make climbable ladders in my platformer by testing if the player or any npc is in front of a ladder, but my map is scaled with the setScale() method. When I tried this: this.playerHasStairBehind = this.mapa.hasTile( escada.getTileX(this.player.x), escada.getTileY(this.player.y), escada );By the way, escada means ladder or stairs and is a scaled layer imported from the tilemap "mapa". But that code returned this error: In order to solve this, I managed this workaround: this.playerHasStairBehind = this.mapa.hasTile( escada.getTileX(this.player.x/this.mapScale), escada.getTileY(this.player.y/this.mapScale), escada );I hope I've helped someone with this post! And thanks for Phaser, it's an awesome framework!
  2. I'm trying to make something happen when hasTile return false, but never this occurs. I want that when my character has a null tile in front of them, something happens.
×
×
  • Create New...