Be a Supporter!

How to center the camera?

  • 616 Views
  • 4 Replies
New Topic Respond to this Topic
dannydk6
dannydk6
  • Member since: Jun. 9, 2008
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
How to center the camera? 2009-06-23 17:11:56 Reply

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

BBS Signature
RiotFlash
RiotFlash
  • Member since: Dec. 11, 2006
  • Offline.
Forum Stats
Member
Level 08
Musician
Response to How to center the camera? 2009-06-23 17:14:10 Reply

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

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

dannydk6
dannydk6
  • Member since: Jun. 9, 2008
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to How to center the camera? 2009-06-23 17:17:38 Reply

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

BBS Signature
sorawild23
sorawild23
  • Member since: May. 25, 2009
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to How to center the camera? 2009-06-23 22:16:09 Reply

i dont know what youer talking about

Coolio-Niato
Coolio-Niato
  • Member since: Jun. 30, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to How to center the camera? 2009-06-23 22:46:30 Reply

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