00:00
00:00
Newgrounds Background Image Theme

MagDeWarrior just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

How to center the camera?

829 Views | 4 Replies
New Topic Respond to this Topic

How to center the camera? 2009-06-23 17:11:56


Hey I'm making a game that includes scrolling around and I'd like toknow if there is a code that lets you see the center of the screen.Like the middle size. My l x w is 550 x 400. He scrolls out of the middle and i want to make cut scenes that are in the center and I want to know if there is a code for that. Thanks to anyone who can help.


THE EVOLUTION OF A GOD

Learn from your mistakes, and make sure to fake a double-take.

BBS Signature

Response to How to center the camera? 2009-06-23 17:14:10


I'm not sure I understand your question, but this may help:

http://www.newgrounds.com/bbs/search/top ic/vcam

Response to How to center the camera? 2009-06-23 17:17:38


no no I nottryin tomake a vcam. I want to be able to see the white part in flash. Like what your working on in the middle, by putting in a code. Anyone know what I'm talking about?


THE EVOLUTION OF A GOD

Learn from your mistakes, and make sure to fake a double-take.

BBS Signature

Response to How to center the camera? 2009-06-23 22:16:09


i dont know what youer talking about

Response to How to center the camera? 2009-06-23 22:46:30


_root._x = char._x*-1+stage.width/2
_root._y = char._y*-1+stage.height/2

Centers the stage on the character, acts as a "basic" vcam though.