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! / NinjaStealthLines

Author
Message
Code Stealer
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 10th Mar 2004 13:56
Im using the "line" command to draw some lines(obviously!) on the screen in front of my backgraound and behind my sprites. Now, my problem is that even if I set the ink a colour, it does some wierd addative filter on my line, so it looks like its in predator style stealth mode! I guess I must be missing some command that tells the line to be some specific colour,and Im not turning it on or something. If I draw the line against the blue background it comes out black.

Anyone got any ideas? Im up for considering a different way to draw the line as well, so suggestions are good! Thanks!

GIve me more power!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 11th Mar 2004 00:59
I've honestly never run into that one. DBC or DBP? Care to post some source code so that I can see what you did to get that effect?
--
TAZ

Code Stealer
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 11th Mar 2004 11:01
Ok, its dark basic pro, and its just the line command, if image is a full screen size:


load image "image.bmp",1
do
paste image 0,0
line 100,100,400,400
loop

GIve me more power!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 12th Mar 2004 19:43
Shouldn't there be a INK statement in there before the loop to set the line color?
--
TAZ

Code Stealer
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 12th Mar 2004 19:53
Well, I cant get it to work, it goes all wierd if I use the ink command with it, Like it changes colour

GIve me more power!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 12th Mar 2004 21:19
Gotcha, also paste image requires more parameters:
--

PASTE IMAGE
This command will paste the specified image to the screen. Optionally, you can paste images to bitmaps using the SET CURRENT BITMAP command. If the optional transparent flag is set to one, all coloured pixels of RGB(0,0,0) are not drawn. The parameters should be specified using integer values.

SYNTAX
PASTE IMAGE Image Number, X, Y
PASTE IMAGE Image Number, X, Y, Transparency
--

So, your command should be:

paste image 1,0,0

Trying to paste image "zero" might be creating a problem.
--
TAZ

Code Stealer
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 15th Mar 2004 12:09
Dude, it was a typo, sorry. Im still no clearer on the whole line drawing shinanigans though, whats with that? The latest incarnation gives me lines that start dark and end up being red, the more I draw. I set my ink to rgb 255,255,255 so I dont know why its drawing it in red!

GIve me more power!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 15th Mar 2004 18:43
Me neither since I can't duplicate the problem, makes it a bit vexing.

Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Mar 2004 18:55
I don't know what the problem is, but best not to use line anyway. Grab a long sprite or something.

Code Stealer
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 15th Mar 2004 23:35
How do I grab the sprite?

GIve me more power!
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Mar 2004 00:14
In an art package. Just use Load Image.

Code Stealer
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 16th Mar 2004 11:37
The line needs to be very versatile. I never know how long its going to be, nor what angle I want it at, but I guess I could use a scale command on my sprite to get it the right lenght...

GIve me more power!
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Mar 2004 17:59 Edited at: 16th Mar 2004 18:01
Yeah...Pity DBPro switches on 3D for sprites, but at least you can now have transparent lines. If you do switch on the 3D, you could try plains as well. They might be faster, I'm not sure. If this is for a power bar then I used a plain for mine.

Code Stealer
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 16th Mar 2004 18:47
Actually, maybe thats a good idea. Can I rotate a plane in dbpro? And whats the command for it?

GIve me more power!
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Mar 2004 22:09
You can rotate plains with the rotate object command.

In DB classic it's..

Rotate Object No#,X,Y,Z

Probably the same in DBPro.

Tapewormz
22
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 17th Mar 2004 03:29
I think he means that when he draws or pastes an image, that he's getting dithered or antialiasized edges. As if the line looked blurry. I've had this happen to me a few times. For example if he pasted an image of a white square on a black background, the white square would have a halftone border around it.
Tapewormz
22
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 17th Mar 2004 03:31
If you want those anime action lines in a game, I would reccomend using an avi on a 2d plane. Then you can just rotate the plane in the direction of the action.
Code Stealer
21
Years of Service
User Offline
Joined: 12th Feb 2004
Location:
Posted: 17th Mar 2004 11:02
Im using the lines to connect points. The player puts pont 1, then point 2 ect on a map, then the points are connected by lines. They need to look good. At the moment they dont draw correctly. I dont know why not!

GIve me more power!
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 17th Mar 2004 11:47 Edited at: 17th Mar 2004 11:54
If you are using a map still, you could just have tiles with lines on, the same as pacman uses tiles with dots on. You would have to restrict your player to 8 directional movement though to do this.

Login to post a reply

Server time is: 2025-08-09 02:11:59
Your offset time is: 2025-08-09 02:11:59