Hello, I have a problem… I want make a game like Star-Control Time-Warp, because I want make my owns ships… But appears 4 difficults:
1- I need the ship make an aceleration, but when gain a maximun velocity (this is diferent in each ship) the aceleration stops and the ship flies with these maximun velocity, and then, when you don’t press the key, doesn’t do a desaceleration, of course, you can start pressing up again in other direction to gain velocity, without greater de maximun velocity of the ship.
2- I also need when the ship collision ones which others, they “bounce”, in oposite direction with the other ship, but this bounce would depend of two factors, one is the velocity of each ship, that isn’t constant, and the other is the mass of the ship (this is different in each ship), that is constant in the ship.
3- I don’t know how to make some actions because I don’t understand the Time and Timers, I never has been worked with timer controls like this. I want to do some like “wait”, for example: when I press “S”, the ship fires a laser, I know how to do it, but the laser would be 0.1 seconds in the world and then dissapear… I can create an object “Laser” in the position x and y of the ship, do the laser direction be the same of the ship, but I don’t know how to delete the laser then 0.1 seconds.
4- The most difficult problem apparently: I want create a shot fired from a ship, but not from the ship’s origin, from te forward, the shot never touches the ship, I could do the direction of the shot be the same of the ship, and the position be the same of the ship too, and at these last values add some numbers “x” and “y” depending of the ship size, but this values added aren’t constants, because the ship rotate, for example: if the ship is looking the right, I would have to add “x” values of the position like the ship’s longe, and add “y” values like the ship’s width/2, but if te ship is looking up, I would have to add “x” values of the position of the ship like the ship’s width/2, and don’t add “y” values.
There are my problems, if you can help me, practically you created a Star-Control Time Warp (excuse my English, I really speak Spanish)
Thanks: Lizard-13