Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

PowerQuest

A Nifty 2D Adventure Toolkit for Unity · By Powerhoof

Camera follow player

A topic by JustinMucus created Aug 25, 2020 Views: 255 Replies: 2
Viewing posts 1 to 3

Hey, I can't seem to get the camera to follow the player in a long room. How would I go about getting that implemented? I feel like it must be really obvious but I just can't seem to figure it out.

Thanks!

(+1)

Heya!  All you need to do is set the Bounds for the room (so the camera knows where the edges are and doesn't go outside them). You can do that either by dragging the yellow box in the scene, or settings the width/height, etc in the Room's Data.


Some extra info about scrolling cameras:

  • You can leave the Y, and Height at zero if you only want to scroll horizontally
  • You can set the scroll bounds the same way. These control how far the character has to be from the edge of the screen before the camera starts scrolling. By default it'll try and stick to the center of the character.
  • There are some more setting that control how the camera moves/scrolls in PowerQuest -> Tools -> Game Camera.

Wonderful! Thanks!