Jump to content

Search the Community

Showing results for tags 'World Camera'.

  • 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. I'm trying to do what the topic says... I'm doing a tech spike with a requirement that the origin applied to all assets in a game scene can be changed visually--no discernible calculations when adding assets to a scene given world coordinate offsets from said point (for example, the world origin might need to be the center of the canvas) or it might be the top left of an asset bucket of lower resolution than the game's canvas. I've tried growing the world bounds and changing the camera's position, that this seems to update things added to the world prior to the change, but I'm not sure what needs to happen so that everything added to the scene thereafter assumes the offsets. So, for example trying to move the world origin down and right 100 pixels... var originOffsetX = 100; var originOffsetY = 100; game.world.setBounds(0, 0, this.game.scale.width + originOffsetX, game.scale.height + originOffsetY); this.game.camera.bounds = null; this.game.camera.setPosition(-originOffsetX, -originOffsetY);
×
×
  • Create New...