Jump to content

Search the Community

Showing results for tags 'strange behavior'.

  • 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, comunity and Richard. When I create my player, I use the follows code: creature = game.add.sprite(-500, -500, 'hero', 2, group); game.physics.enable(creature, Phaser.Physics.ARCADE); creature.body.gravity.y = 500; creature.scale.set(xFactor, yFactor); creature.body.offset.x = creature.body.width - creature.body.width * 0.8; creature.body.width = creature.body.width * 0.8; After creature.scale.set() phaser immedeately change creature.width, but doesn't change creature.body.width. Then I change my creature.body.width to needed value, but after first update() run phaser set creature.body.width to updated creature.width. How I understood, it's because phaser update physics after each update() iteration. Is it normal behavior?
×
×
  • Create New...