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.

Author
Message
factual puddle
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Location: Ohio
Posted: 5th Jan 2005 09:33
how do i make some cross hairs for my gun?any help is much appreciated.TY
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 5th Jan 2005 10:32
it depends on if the aiming is like halo where you move the camera and the crosshair stays in the same spot, which easier, or the gun onscreen moves.
for the first method, place the picture of the cross hair in the center of the screen and leave it there. the 2nd method is just hiding the mouse cursor and putting the cross hair in the mouses' location, and maybe adding more code to make your gun point to that spot.
for making them, use a program like paint or photoshop and doodle away. or you can use someone elses if you have their permission.

coffee + monkeys + creativity = games
factual puddle
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Location: Ohio
Posted: 5th Jan 2005 10:44
Ty I appreciate it.
factual puddle
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Location: Ohio
Posted: 5th Jan 2005 11:00
when i load the image how do i position it?
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 6th Jan 2005 05:03
sprite SpriteNo,Xpos,Ypos,ImageNo

Part of solving the problem is actually noticing that the problem is there in the first place

factual puddle
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Location: Ohio
Posted: 6th Jan 2005 05:27
thx but when i made the image in ps, i set the background to transparent but when i play the game it has a white background, any help?

<img src="http://www.applepics.com/50/userfiles/41db286baae90.gif</img>
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 6th Jan 2005 05:50
sprites can get laggy though. try making a plane the size of the crosshair and texture it with the crosshair pic. then, do some transparency command (i forgot what).

coffee + monkeys + creativity = games
Operation Pineapple - Multiplayer FPS WIP:
http://forum.thegamecreators.com/?m=forum_view&t=44832&b=8
demons breath
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 8th Jan 2005 16:28
when you make a photoshop file a bitmap it will change the background colour to white automatically - the standard transparent sprite/bitmap colour is black so just make the background colour black in photoshop, although I think in DBP you can change this.

and, off topic, the image in your sig doesn't show up, it should just be:


Am I the only one here who's really confused?
http://db1games.topcities.com
(used to be demonsbreath)
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 8th Jan 2005 21:27 Edited at: 8th Jan 2005 21:28
Actually... for the image to show up in the sig it should be:



http://www.dbspot.com/NYC
New years competition... Fo Shizzle.
factual puddle
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Location: Ohio
Posted: 9th Jan 2005 01:55
ok, i changed the code to my siggy, this is to see if it works, and i got the crosshairs to werk.ty

[img]"http://www.applepics.com/50/userfiles/41db286baae90.gif"[/img]
Visigoth
19
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 9th Jan 2005 10:24
I did it this way,
I made a sub routine that just draws 4 lines at the center of the screen, and then call it in my game loop. I can change the gap in the center of the crosshairs and also the length of the lines by just changing two variables. If you want to, you could use the INK command to change the line colors.
Visigoth
19
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 9th Jan 2005 12:03
oops, didn't know how to do the code snippet thing..
does this work?

Visigoth
19
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 9th Jan 2005 14:30
oops, didn\'t know how to do the code snippet thing..
does this work?

Login to post a reply

Server time is: 2024-09-23 08:30:06
Your offset time is: 2024-09-23 08:30:06