The Daily Click ::. Forums ::. Klik Coding Help ::. Problem with my moon lander engine...
 

Post Reply  Post Oekaki 
 

Posted By Message

Mr G



Registered
  31/12/2008
Points
  178

VIP MemberPS3 OwnerI like Aliens!Attention GetterDos Rules!
21st February, 2009 at 20:08:11 -

So I'm making a moon lander type game and made an basic engine with a counter and flags.

At the start, the ship is staying on a platform and it's not moving.

+ Upon pressing Shift, every 5 seconds, The internal flag 0 of ship is off, I subtract 1 from the gravity counter to make the ship thrust upwards.

+ Every 2 seconds when the flag of ship is 0, I set the y position of the ship to the value of the counter to make it move with the thrust.

+ The speed is limited to a value of maximum +10 of the gravity counter so that it doesn't speed up and become unstoppable.

+ And when the flag of ship is 0, every 10 seconds, I add 1 to gravity counter so that there is a gravity for the ship to be pulled down.



My problem is, I can move the ship sideways but I can't rotate the thrust to push the ship sideways. I understand X and Y velocity and the ship itself is 8 directional but the thrust is 1 directional (thrusting upwards only).

Can anyone help me out on how to make it so that I can change the thrusth of the ship to the direction of the ship so it can push sideways (8 directional)?

 
Image

http://create-games.com/project.asp?id=1549

Mr G



Registered
  31/12/2008
Points
  178

VIP MemberPS3 OwnerI like Aliens!Attention GetterDos Rules!
23rd February, 2009 at 19:51:17 -

BUMP! (It's been 2 days already, c'mon people...)

 
Image

http://create-games.com/project.asp?id=1549

easyname



Registered
  15/04/2008
Points
  450
23rd February, 2009 at 21:58:06 -

Do X and Y seperately, instead of using thrust direction.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click