Page 1 of 1
Space Combat help needed
Posted: Wed Mar 28, 2007 5:12 pm
by jamespro
I am trying to make a Star Trek Fan game. I am having problems with space combat and I was wondering if some one could give me an example script for space combat so I can get an idea on how to do it? My game is a RPG style game including planet combat, space combat, exploration. You start out as a Star Fleet Cadet in star fleet academy where you learn how to play the game you then work up through the ranks to become a fleet captain where you can control a whole fleet of star ships. The main story line of the game will be an invasion by species 8472 however there will be many smaller story lines through out the game.
So if any one can provide me with a space combat script so I can see how to do it it would be very helpful!
(According to the Star Trek forum this is legal as long as you put a disclaimer saying that it has nothing to do with paramount and paramount owns star trek and that the game can't be sold.)
Posted: Wed Mar 28, 2007 7:38 pm
by jonas
Welcome to the forums Jamespro. I don't believe anyone as of yet has made a space combat game with realityfactory, or any flying game, but it is possible. You might take a look at some of the scripts in the demos that have cars, flying would be very similar you would just have to change the location of the vehicle, and ect..
Posted: Fri Mar 30, 2007 6:05 am
by darksmaster923
well, you can script the player, but thats hard work and you have to have alot of experience.
Posted: Fri Mar 30, 2007 7:12 am
by BLACK_PHOENIX
this is actually very easy, just a bit confusing with rf. i reccomend the torque engine coz these type of things are really easy.
if your playing as a ship. you should make the ship model an actor so when you start you start as the ship. the bounding box will help with the combat so make it as small as the ship can fit.
next you will have to change around the camera and make it free to move around the bsp level and then attach it to the ship model.then the confusing bit. now you have to create a level that basically has no gravity. im not entirely sure on how to do this but this will allow you to move around the level like a ship with no gravity. then just script pawns the same way as normal but keeping them 0 gravity and eventually you might get a space combat level in RF. otherwise just use torque and youll do it in a quarter of the time since the levels used in torque have no "gravity" force that act upon the camera/player.
Posted: Fri Mar 30, 2007 3:38 pm
by Jay
Not really sure if the torque engine is what he's looking for, you need to know porgramming (and also money) for the torque engine!
anyway, @jamespro: Welcome to the forums!
btw, if you're using a scripted player (which i really recomend for something like that, otherwise you cannot get faster/slower and aslo a few other things)
no gravity is pretty easy, because there is a Command called Gravity(true/false) which sets if gravity is acting to the pawn (=scripted player) to true or false.
It's also even easier to set the gravity in EnvironmentSetup to 0.
Posted: Fri Mar 30, 2007 4:14 pm
by jamespro
Thank you every one for the replies. I have decided to put this game on hold until I am more experienced with Reality Factory. But once again thanks!