Jump to content

Search the Community

Showing results for tags 'pixel copy clone'.

  • 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 there, thanks for reading. I was wondering if there is a way to copy the pixels from a loaded and displayed sprite/image to a new object, im trying to make a "Find the differences" game and i want to set the rectangle/square X,Y,X2,Y2 of a difference and then make a copy of the difference when you click it, so a new object with just the picture of the difference is created, so i can manipulate the difference itself. Thanks again! Edit: im now using the bitMapData, and know how to copy the pixels, but how do i create a new object/sprite with this copied pixels? so i put it in a group this.bmd = game.make.bitmapData(800, 600); this.bmd.addToWorld(); this.currentDifferences = new Phaser.Rectangle(100,350,150,250); this.bmd.copyRect(this.currentPicture, this.currentDifferences, 200, 100);
×
×
  • Create New...