Jump to content

Search the Community

Showing results for tags 'canvas position'.

  • 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. My group aliens is moving around. At some point I remove a single alien and put it in a deadAlien group like this: deadAlien.add(alien);However, my deadAlien group does not have the same x, y as the 'alive' aliens group. they just move to the top of the canvas. Ok thats's easy to fix right? deadAlien.x = aliens.x; deadAlien.y = aliens.y;However, now my deadAliens constantly move around in sync with the alive aliens. Once an alien dies and is moved from the Aliens group into the deadAliens group, I need it to not change position (not to move to the top of the canvas), but also not have it's position dictated over time by the aliens group. How do I accomplish this?
×
×
  • Create New...