Jump to content

Camera 2d


Gerente
 Share

Recommended Posts

Hi, im working on the camera of my game, its a 2d game and I need to center the camera to the character, enemies, etc.. to different objects in or out of the screen.

Anyone could advice me about this, any good practice, technique, mistakes, etc..

 

I'm just moving the camera toward the object and stopping it when the distance is lower than the camera speed but I have some artifact on the way when I play it on mobile vs pc. Seems that devicePixelRatio have something to do with this.

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...