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 / Crosshair help

Author
Message
Axelman
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 25th Oct 2003 12:20
Does anyone Know how to make a Crosshair or a make it so the screen looks like your looking through a sniper scope?
Thanks

Axel Waz `Ere
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 25th Oct 2003 13:23
just put a sprite in the centre of the screen, easy...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Axelman
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 25th Oct 2003 15:53
geez you made me look stupid!

Axel Waz `Ere
Sly D
22
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 25th Oct 2003 16:32
rem Load bitmaps and grab the image
load bitmap "crosshair.bmp",1
get image 1,0,0,8,8
delete bitmap 1


rem Make the crosshair
make object plain 1,8,8
position object 1,-5,0,200
lock object on 1
texture object 1,1
set object 1,1,0,0

I think you can understand this... if not post please.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 25th Oct 2003 18:18
@Cyber_Freak:
That might not work, cos you would see the "box" of the plain, whereas if you just use a sprite, then you can set transparency on it so only pixels that arent black will show...

@Axelman:
Sorry, didn't mean to be rude...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 26th Oct 2003 00:22
yes but then you could texture the plain and put transparency on

Sly D
22
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 26th Oct 2003 00:37 Edited at: 26th Oct 2003 00:38
@JessTicular
It works. Thats why i use "set object" command
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 26th Oct 2003 01:31
fair enough, i admit defeat....


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-21 10:19:25
Your offset time is: 2025-05-21 10:19:25