The Daily Click ::. Forums ::. Klik Coding Help ::. Megaman Camera System.
 

Post Reply  Post Oekaki 
 

Posted By Message

Logiq



Registered
  09/04/2007
Points
  120
28th October, 2008 at 01:14:52 -

I am trying to make a camera system for my platform games that resembles the old megaman games. I've tried downloading a couple of the megaman engines on here but none of them have the camera system in place. for those of you who do not know what I am talking about I will explain.

the camera will follow megaman via his x or y axis. If the room is horizontal then the X axis and if vertical then the Y axis. When the player switches rooms the game freezes while the camera shifts the to next room, then unfreezes to allow the game to continue. (Every room on the stage will be on one frame.)

The first thing I thought of was to use camera nodes. If the player is between these nodes then the camera will follow him. This method works for the first room. My problem is switching rooms and then getting the camera to work in between the second set of nodes.

As always any help is much apprieciated.

 
Hello guys! I'm New! -- I've been new for a year now...haha

WillWill

Give me stuff

Registered
  24/07/2006
Points
  552
28th October, 2008 at 12:27:13 -

I remember trying to do this a damn long time ago. Now I'm a bit wiser but I haven't really attempted it in a while.

My suggestion to make this work in a way that won't bug up the entire game but instead might lag it up abit and that would be to make use of Sub Applications.

I'm not entire sure if sub applications are able to change position while being in an existing frame and not in a new window, but surely this would be the best way to perform this. If I find myself restless and bored once I get home from work I might put this to the test, but I cannot guarantee anything.. Thus I'm sure someone will give you a more specific answer.

Image Edited by the Author.

 
http://www.morphboy.newgrounds.com/
^ Free tunes, as long as you contact me.

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
28th October, 2008 at 13:58:15 -

I've got this in Sam and Tormi-

Have 2 camera objects, an X and Y. The X position looks at the X etc. Give them a bouncing ball movement and create 3, screen sized active objects (or any method to define the region where the camera will focus). If the player is out of any focus zone then have the objects look at the player and set their speed to the distance from each other (to make it all smooth like, but add multipliers to make it faster according to taste). If the player is over the X zone then have the X camera look at the zone, and the Y set to the player. And the same for the Y zone. Finally have a central zone which has both the camera's look at. And of course if you used actives for the zones - then have them made invisible at the start of the frame.

Benefits of using actives is the dynamic nature of them. You can have certain areas fixed at certain times or according to events rather than having to redefine the area in the event editor.

That will give you free, horizontal, vertical and fixed camera positions and no denying.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Logiq



Registered
  09/04/2007
Points
  120
28th October, 2008 at 19:32:54 -

Thanks Dr. James. I rounded up some of the old games and I found out that megaman doesn't scroll on the Y axis unless you are switching areas. I'm using your zone idea and it is coming along great. I'll let you know when it's done.

 
Hello guys! I'm New! -- I've been new for a year now...haha
   

Post Reply



 



Advertisement

Worth A Click