camera in a fighting game
i am in a middle of a fighting game that me and my friend is developing.we are stuck on the camera movement/camera part.so i have two questions.
1.where do u place the camera so that it gets both of the fighters in the scene.
2.how are we going to rotate the camera when the fighter is doing a special move.say key "s" does the special move.do i program it to rotate the camera when key s is pressed or something else.
i will be releasing the demo afer the finishing touches.
I would say that you should put your camera movement in your special move "function" (If it''s a function). Not sure if you understand, but you don''t need to create a special part for your camera move, just include it with the special move.
~-~-~-~-~-~-~-~-~
RPG D&D
~-~-~-~-~-~-~-~-~
RPG D&D
just stop the player from moving, like in the old streetfighters.
instead of enlarging the cameraspace, block the movement.
.lick
instead of enlarging the cameraspace, block the movement.
.lick
A what the heck is with that kills death counter....
You in a game or something...
Thats messed up...
[edited by - XDarkScar on March 23, 2003 12:01:07 AM]
You in a game or something...
Thats messed up...
[edited by - XDarkScar on March 23, 2003 12:01:07 AM]
Easy way of programming: Coding, Debugging, Swearing.
Google / Game Tutorials / GameDev.Net / My Project server. Check it out.
Project: N/A / Percent Complete: 0% / Due Date: N/A
Google / Game Tutorials / GameDev.Net / My Project server. Check it out.
Project: N/A / Percent Complete: 0% / Due Date: N/A
To expand on what dragov was saying, place the camera''s movements in the special move routine. For example, if the special move initiates a sequence of 20 frames of animation, have stored with each of those frames a position for the camera. Now when the special move begins, start moving the camera toward each of the stored positions in turn.
Depending on how much freedom is allowed in your game this could work quite well. Otherwise, I''d suggest developing the code for the camera more. If you can force the camera to always move toward a position from which it would be able to view both fighters you should be doing well indeed.
Depending on how much freedom is allowed in your game this could work quite well. Otherwise, I''d suggest developing the code for the camera more. If you can force the camera to always move toward a position from which it would be able to view both fighters you should be doing well indeed.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement