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! / Space Invaders type game

Author
Message
DBAlex
21
Years of Service
User Offline
Joined: 4th Oct 2004
Location: United Kingdom
Posted: 14th Nov 2004 05:05
I need help with it. heres my code


i have ship movement and shooting done.

How will i make a line of the same enemy? and when the bullet collides with it only delete that enemy?

PS Im quite new to Dark Basic Pro >_< Please Help!

Dark Basic Roxxs (when i dont get error... )
ToXic
23
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Australia
Posted: 14th Nov 2004 06:39
Hope this helps.



ToXic.
DBAlex
21
Years of Service
User Offline
Joined: 4th Oct 2004
Location: United Kingdom
Posted: 14th Nov 2004 07:14
Hmm It did kinda but, the bullets are invisible on yours and...could you edit my code for me?

Its ok if you dont want to...it would just help me more than looking at a different code...

Dark Basic Roxxs (when i dont get error... )
ToXic
23
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Australia
Posted: 14th Nov 2004 13:43
Change the sync rate to 60, perhaps the bullets are invisible because they are moving to fast. Try and understand the bits of my code you need then adapt it your code.


ToXic.
DBAlex
21
Years of Service
User Offline
Joined: 4th Oct 2004
Location: United Kingdom
Posted: 14th Nov 2004 20:00
Ok I have that working now

I need to know how a second line of the enemy would be added? i know its probably simple...I have tried to do it myself by using:
for t=3 to 13
SPRITE t,x,32,3
inc x,50
next t

it doesnt work though

Dark Basic Roxxs (when i dont get error... )
ToXic
23
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Australia
Posted: 14th Nov 2004 21:01
This should work.



ToXic.
DBAlex
21
Years of Service
User Offline
Joined: 4th Oct 2004
Location: United Kingdom
Posted: 14th Nov 2004 23:15
Wow, Thanks, I get that now...Kinda

Yes! The enemies now animate and they come down at about 1 pixel per second (they are on a timer).

Thanx dude! Shall i credit you?

Dark Basic Roxxs (when i dont get error... )
ToXic
23
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Australia
Posted: 15th Nov 2004 11:29
No need for credits, happy I could help.


ToXic.
DBAlex
21
Years of Service
User Offline
Joined: 4th Oct 2004
Location: United Kingdom
Posted: 16th Nov 2004 00:04
Ok, thanks.

Dark Basic Roxxs (when i dont get error... )
Tapewormz
23
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 29th Nov 2004 21:16 Edited at: 30th Nov 2004 16:17
I'll repost my invader source when I'm finnished. I feel weird posting it unfinnished.

Login to post a reply

Server time is: 2026-06-11 14:49:04
Your offset time is: 2026-06-11 14:49:04