Jump to content

Search the Community

Showing results for tags 'phaser sprite stretchable'.

  • 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'm new to Phaser and can't figure out how to create a sprite that contains a stretchable area as well as fixed parts. My goal is to have something similar to the following image : I want this sprite to be resizable at any time (myStretchableSprite.width = w). I tried the following way : * Create a main Sprite * Add a left child Sprite with a fixed width * Add a center child TileSprite with variable width * Add a right child Sprite with fixed width It works fine when initializing the parent sprite with a given width, but if I try to update the parent sprite's width later, some kind of scale is applied to all its child elements and the result is far from what I expected. Any ideas on how to achieve this ? Thanks a lot !
×
×
  • Create New...