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 / Best way to do bullets/laser/etc

Author
Message
elVee
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location:
Posted: 12th Oct 2003 20:24 Edited at: 12th Oct 2003 20:26
Whats the best way to draw them?
Right now when you push the firebutton, it does this

but this doesnt seem to work too well... Is there a neater way?

and same with moving them.This is what I got for moving them:



and one more thing... Can someone explain to me in detail how to use plains? I was thinking of faking the 2d to make it run smoother, but I have no idea how to use plains, evena fter going through the help files and tutorials.
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 12th Oct 2003 21:43
hmm, instead of using sprites, I'd create plains, yrotate them on 90 degrees, fix object, then instead of creating and deleteing them all the time, I'd change their position to somewhere they can't be seen. It's faster than creating and deleteing all the time. So basicly it's something like this:


Morfy's Law - Enythink thet ken go rong willll.
Cole's Law - Thinly sliced cabbage.
elVee
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location:
Posted: 12th Oct 2003 23:25
I was planning on turning my entire game into plains when I figured it out... I try that now. Thanks
elVee
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location:
Posted: 13th Oct 2003 00:45 Edited at: 13th Oct 2003 00:46
Ok I see the plains being loaded before the game starts, and I adjusted the firing code to shoot the plains instead of sprite, but when the game actually starts there are no plains visible, even if I shoot them.
heres some of my code (the main loop, the sprite loading sub and the firing sub)






and the code thats supposed to move the plains

Login to post a reply

Server time is: 2025-05-21 14:08:31
Your offset time is: 2025-05-21 14:08:31