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.

Newcomers DBPro Corner / Galaga Cloneish Help Topic (for me)

Author
Message
HUNK UBCS
17
Years of Service
User Offline
Joined: 15th Nov 2006
Location:
Posted: 18th Nov 2006 07:36
Hello, I thought I would make one centeral topic for the questions I inevitably have, right now I am uncertain as to why my oponent sphere is only moving away from my blasts once, here is my code (sorry if it is confusing)


"I wonder who said this..."
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 19th Nov 2006 03:58 Edited at: 19th Nov 2006 04:02
It only does it once because you check for moving to be at 8 only. Sometimes the variable is more than 8 so you need to make sure that moving becomes zero if it's at 8 or more than 8.



Edit: Wouldn't a Galaga Clone remove any ships that get hit rather than move them around?
HUNK UBCS
17
Years of Service
User Offline
Joined: 15th Nov 2006
Location:
Posted: 19th Nov 2006 07:30
that is just to make sure he doesn't move for too long, isn't part of the other commands, and this is AI... or my pitiful attempt at it, and Im sure the misreading is either my fault, or due to lack of comments.

"I wonder who said this..."

Login to post a reply

Server time is: 2024-11-14 01:21:59
Your offset time is: 2024-11-14 01:21:59