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 / Unit selection is all messedup :(

Author
Message
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 30th Dec 2004 01:51
I tried adding unit selection to my game today, but the camera angle that I have seems to mess it all up. You will notice right away, that the unit selection object shoots away from the camera, travelling on the z axis, I tried changing the unit selection code around, so that it would go up and down on the y axis, but when I do that, it just shoots away and doesn't come back! The unit selection code is supposed to make the green cube follow the mouse, and select units. This is the version with no media, my other version has a ton of media, that is all rotated and lined up exactly as I want it, so if I was to to rotate the camera to make the selection code work properly, I lose sight of all my objects that I created, and cannot seem to find them. Here is the media-free version of my code, the green square should stay level with the other objects on screen, and hould move the white cubes when I click on them with the object....



Oh, and by the way, if anyone has a better idea for unit selection, and can tell me how to do it I'm all ears.

Thanks.

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 30th Dec 2004 08:26
Never mind, I repositioned the camera, and finally re-positioned and re-rotated all the objects, and it workds, and looks great!

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.

Login to post a reply

Server time is: 2025-05-24 08:23:55
Your offset time is: 2025-05-24 08:23:55