Jump to content

Search the Community

Showing results for tags 'phaser sprite tweens'.

  • 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, I have an object, let's call it Player, than the user can move via mouse clicks. I am currently using the following code to move Player: this.tween = this.game.add.tween(this.body).to({ x: x, y: y }, duration, Phaser.Easing.Linear.None, true);This works great, until Player runs into a blocking object (let's call them Squares) which have immovable = true. What ends up happening is the Square block Player and Player glitches about and sometimes even teleports to the other side of Square, before continuing on to his destination. I am assuming this happens because tweens use a duration to complete the animation, which makes sense. But how can I handle when Player is blocked by a Square and his duration for the current path is now longer, because Player should go around Square rather than teleport across? Thank you
×
×
  • Create New...