Be a Supporter!

Help me make a Smash Bros camera

  • 324 Views
  • 4 Replies
New Topic Respond to this Topic
vid3oman64
vid3oman64
  • Member since: Mar. 13, 2009
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Help me make a Smash Bros camera Dec. 18th, 2010 @ 12:59 AM Reply

I'm trying to make a Smash Bros. style camera system. I want the camera to always show the player and the next objective item on screen, and if the player moves further away, it should zoom out to keep both on screen, and if they move closer, it should zoom in (to a point). I have no idea how to do this. I've tried manipulating 'scrollings' but that makes jittery window movements.

metroidfannumber1
metroidfannumber1
  • Member since: Aug. 2, 2009
  • Offline.
Forum Stats
Member
Level 34
Blank Slate
Response to Help me make a Smash Bros camera Oct. 30th, 2011 @ 02:03 AM Reply

don't worry, i don't think it's impossible. in the scrolling options of the object properties menu, do you have the "follow the frame" box checked? if not, then it could get pretty jittery. if you figure out how to zoom in and out, please tell me because i don't know.


TOAST

Nero1024
Nero1024
  • Member since: Jun. 18, 2009
  • Offline.
Forum Stats
Member
Level 03
Game Developer
Response to Help me make a Smash Bros camera Oct. 31st, 2011 @ 07:30 AM Reply

You can't make the camera zoom in and out to fit objects on screen.

Sumo148
Sumo148
  • Member since: Oct. 10, 2011
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to Help me make a Smash Bros camera Oct. 31st, 2011 @ 07:34 AM Reply

At 10/31/11 07:30 AM, Nero1024 wrote: You can't make the camera zoom in and out to fit objects on screen.

Technically you can, just not in TGF2. If you get MMF2 you can download an extension called the perspective object (i believe thats the one) that can change the zoom of the screen. I've done it before :D

Jools64
Jools64
  • Member since: Dec. 4, 2006
  • Offline.
Forum Stats
Member
Level 04
Game Developer
Response to Help me make a Smash Bros camera Oct. 31st, 2011 @ 09:21 AM Reply

You could also do it by scaling every single entity on the screen to a value and change the X and Y coordinates accordingly but I'm betting it would run pretty slow and take some complex maths. So yeah not very feasible in TGF2.