Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / My Spacecraft doesn't repeat what it supposes to do...

Author
Message
Alexander Seow
15
Years of Service
User Offline
Joined: 17th May 2008
Location:
Posted: 26th Jul 2008 15:52
Dear All,
I am current doing this game for my course final project and is stuck.

My bloody spacecraft doesn't take off after the first time round. I have screen through my code and is total out of my wits. I really need your help to tell me what have I done wrong that my ship is not flying after the first take off.

I am a novice coder so the code may be very untidy to most of you out there but I've tried my best to keep them in order.

To keep it short and simple, this is what my ship is suppose to do:--

1. When game start at every level, the space ship is supposed to be landed on a Moon. (Success)

2. When I hit the space bar, it supposed to fly off. (Success)

3. When collide with a moon, it supposed to land on the moon. (Success).

And the loop goes on.

Appearently, after my spacecraft took off and landed on a moon, it fails to take off again. I don't know why.

Please kindly tell me so that I can get it done.

There are a few bitmaps and a bgm which I can't attached here. If you guys need them to run the game, please mail me at alexander@yahoo.com.sg

Thanks.

BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 26th Jul 2008 21:07
Wow, there has to be a better way to do all that directional stuff. I would post this over in the DarkBASIC Pro board, this one doesn't get nearly as much traffic as that one does. I'm certain somebody over there can help you replace all those direction things with a for-next loop, and find your problem.

Login to post a reply

Server time is: 2024-05-04 13:35:03
Your offset time is: 2024-05-04 13:35:03