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.

Newcomers DBPro Corner / Crosshair question

Author
Message
Sureal Chris
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 20th Jan 2005 05:08
Im creating a first person thing and so far I have a textured matrix and a crate in the middle. I also have a crosshair (a plain with a texture) but how can I make the crosshair change colour when 'over' an object
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 20th Jan 2005 06:15
Hmmm, maybe you could try coloring the object using the RGB command...

color object objectnum,RGB(red,green,blue)

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 20th Jan 2005 16:04 Edited at: 20th Jan 2005 16:17
Something like this?



There are many ways to do this.

You could even use the texture object command.



You will definately want a better mouse to object position control. I just threw that in quickly. It is very jumpy.

Sureal Chris
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 21st Jan 2005 04:46
I tried each of the code snippets you gave to see if they where what I wanted to acheive but each one has a problem with the "temp = pick object(object screen x(1), object screen y(1), 2, 2)" bit saying "parameter mismatch. array must have at least one subscript" and as Im new to this I have new clue what that means

Login to post a reply

Server time is: 2024-09-23 10:23:06
Your offset time is: 2024-09-23 10:23:06