Jump to content

Using virtual cameras


4ian
 Share

Recommended Posts

Hi,

First, congratulations for your work on Pixi, the library is awesome ;)
I wonder if it is possible to use some kind of virtual cameras ? That is to say, use for the sprites and others objects coordinates which are "world" coordinates, and then change the area that is rendered by the stage.

I've tried to change the stage position or rotation properties, but it does not seems to have any effect.

Any help is welcome :)

Link to comment
Share on other sites

Thanks very much :)

 

Its really great to see people using pixi.js! The best way to support cameras at the moment is to put everything in a container and move that around. So if the camera position is 10, 100 the container position would be set to -10, -100. 

 

I will look into adding an actual camera feature to pixi.js once I have finished the bits I'm working on at the moment, but hopefully this will do the trick as a temporary solution..

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...