What the heck is the camera anyway?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
Gizmog
Metal King Slime
Posts: 2622
Joined: Tue Feb 19, 2008 5:41 am

What the heck is the camera anyway?

Post by Gizmog »

I was playing around with non-tile based movement (not happy with my results, but that's not the issue) and the camera following slices that aren't the hero. One of my settings gave me a really weird effect where, when you neared the middle of the screen, the maptiles would start to really whoosh by.

Parenting the slice to the map layer fixed the issue, but it made me wonder: What is "The Camera" anyway? When I tell it to follow something, what's really going on under the hood? And how does that tie into the map layer?
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7658
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

I usually think of the camera as being an invisible rectangle the same size as the screen, which determines your view on the map

It is not a part of the slice hierarchy, even though it is capable of following one.
Post Reply