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

Author
Message
Metamophic
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 5th Nov 2003 02:58 Edited at: 6th Nov 2003 00:52
how can i get the plain to go just from the player to the mouse, without sticking out behind? also, how can i get the plain to always be scaled to go from the player to the mouse?

www.freewebs.com/metamorphicsoft
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 5th Nov 2003 09:26 Edited at: 5th Nov 2003 09:27
Ok, I'm not too sure of your problem, but in your code, you mentioned Cross-hairs, so have a look here.

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Metamophic
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 6th Nov 2003 00:58
jess, did you run my code? if not, do so and you'll understand what i mean.

www.freewebs.com/metamorphicsoft
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 6th Nov 2003 05:13 Edited at: 6th Nov 2003 05:15
Sorry, no i didn't run your code, i was in a bit of a hurry, so i just pulled that link from my bookmarks... LoL...

After looking at your code, and actually running it this time... I have deduced a solution HAHA!

You need to set the position of the "bullet" plane so that one end is at the the position of the "Player". Somehting like:


You then need to use Scale Object to change the length of the object... I suggest making the original bullet 100 units long (which you have done) then using the distance of the player to the cross-hairs to stretch the object...



Note that both of those snippets should be in the main loop and that they may not work as desired, but that is a start...
Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Metamophic
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 7th Nov 2003 00:43
jess, your code didnt work. here's my latest version. can somebody please tell me what im doing wrong?

www.freewebs.com/metamorphicsoft
Metamophic
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location:
Posted: 8th Nov 2003 00:13
please???

www.freewebs.com/metamorphicsoft
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 8th Nov 2003 02:51
You know, it's really hard with your code set-up... Mabey if you worked from the ground up again, you might stumble across the solution yourself..

I suggest trying to incorperate NewXValue and NewZValue somewhere... and that code i posted above, the stretch object command isn't a command, lol, It's meant to be:



Hope I Helped...


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

Login to post a reply

Server time is: 2025-05-21 16:18:05
Your offset time is: 2025-05-21 16:18:05