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.

DarkBASIC Discussion / some trouble with enemy shooting

Author
Message
D I G I T A L
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: Dubai, UAE
Posted: 16th Oct 2003 03:54
hello people,
ive been trying to make my enemy shoot back at me, can some one give me a clear snippet of how to make him shoot bullets?
thankx

‘Those who ignore the lessons of the past are doomed to repeat them’ (Napoleon)
Cookyzue
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Who Cares?!
Posted: 16th Oct 2003 04:13
Open the file "Tutorials" in dark basic then open "source" then open "tut25" and it shows you a basic shooting game.
D I G I T A L
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: Dubai, UAE
Posted: 16th Oct 2003 04:29
well actually that was the problem, there's explosion effects and particals and guided missiles that i really dont care about, i just want the bullet to fire from his gun, the tutorial is a lil complicated, so i was thinking of a simple snippet.

‘Those who ignore the lessons of the past are doomed to repeat them’ (Napoleon)
Cookyzue
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Who Cares?!
Posted: 16th Oct 2003 04:33
you could probably cut out some things in the tutoria to modyfy it to your liking.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 16th Oct 2003 12:02
@01DIGITAL10:
If you read through the code, and if necessary, make little notes of object numbers etc, then you should be able to easily break it down into sections... one section for particle, one for the bullets, one for the explosions etc..

Hope I Helped...

Knowladge Belongs To The People...
D I G I T A L
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: Dubai, UAE
Posted: 19th Oct 2003 03:45
people,
obviously i'm having a severe headach trying to make my enemy shoot back at me. i'm using the shooting game tutorial in DBC, but i have a problem, the sphere(bullet) dosnt move towards me.
here's the code i constructed:

i sure need some help with this, its a little complicated, and i'm still not used to the language very much.
thankx for advance

‘Those who ignore the lessons of the past are doomed to repeat them’ (Napoleon)
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 19th Oct 2003 06:13
Well, out of that code, i can see a few things that *could* cause a problem...

try this:


I just put in a Do Loop and a sync.

And i changed a bit of the code,

Hop
e I Helped...

Knowledge Belongs To The People...
D I G I T A L
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: Dubai, UAE
Posted: 19th Oct 2003 22:35
well, guess what i missed
i forgot a "if door7=1 AND ENEMYBULLETLIFE=0"
just a simple little code mixing everying up! but thankx anywayz

‘Those who ignore the lessons of the past are doomed to repeat them’ (Napoleon)

Login to post a reply

Server time is: 2025-05-21 14:02:21
Your offset time is: 2025-05-21 14:02:21