3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: 1 [2]

Author Topic: Advanced Homing Missile prototype  (Read 4243 times)

« Reply #15 on: March 01, 2011, 05:35:49 PM »
i must be code stupid..(and i am)..I did as you suggested and still cant get it to count
I'm Running . 3DRad 7.22 and LUVIN IT !  8-)

Check out http://www.Zpokerplayhouse.com

jestermon

« Reply #16 on: March 01, 2011, 06:32:02 PM »
Hmmmm..
Link a valueprint to the script, and let's say for argument sake it's OBJ_132, then add the following line in the script...
OUT_132 = score;
just after the line
score++;
which you added before, and the score should show on the screen.
« Reply #17 on: March 02, 2011, 07:01:59 AM »
ok, i was able to get it to count, i linked to counter, and made the changes you suggested...thanks..

 now on to my next project, getting a auto turrent to shoot down the missle...LOL
I'm Running . 3DRad 7.22 and LUVIN IT !  8-)

Check out http://www.Zpokerplayhouse.com

jestermon

« Reply #18 on: March 02, 2011, 06:29:09 PM »
now on to my next project, getting a auto turrent to shoot down the missle...LOL
You are going to need some interesting projection calculations for this. Possible, but tricky. speed of bullet, speed of missile, projected path of missile, 2 cases of beer, a couple dozen pizzas, and trails to mark protected intersections for debugs... And then you need someone to drag you away from you pc once in a while, to do mundane and stupid things like sleep and work.
« Reply #19 on: March 06, 2011, 05:16:36 PM »
OK....one more question on this project...If I wanted to remap the mouse button controls to the keyboard, how would I do it????  any suggestions?
I'm Running . 3DRad 7.22 and LUVIN IT !  8-)

Check out http://www.Zpokerplayhouse.com

jestermon

« Reply #20 on: March 06, 2011, 05:23:40 PM »
OK....one more question on this project...If I wanted to remap the mouse button controls to the keyboard, how would I do it????  any suggestions?
Use
if(iKeyDown(iKeyCode("DIK_SPACE")) && TARGETLOCK && !missileFIRED){   
instead of
if(iMouseButtonClick(0) && TARGETLOCK && !missileFIRED){   

Here "DIK_SPACE" refers to the space-bar

For available keys, see  http://www.3drad.com/forum/index.php?topic=4762.msg39595#msg39595
« Last Edit: March 06, 2011, 05:25:41 PM by jestermon »
« Reply #21 on: March 07, 2011, 02:29:36 PM »
jestermon, you Rock! thank you... :)
I'm Running . 3DRad 7.22 and LUVIN IT !  8-)

Check out http://www.Zpokerplayhouse.com
« Reply #22 on: April 18, 2011, 10:58:04 AM »
It's really cool!

I have a question though:

How can I attach it to a plane and then have explosion particles.
(version 2 doesnt work with me ??? so im making my own particles for hits)
I have no script experience what so ever! :-\

jestermon

« Reply #23 on: April 18, 2011, 11:06:09 AM »
I have a question though:
How can I attach it to a plane
Use the function LocalToParent, with a mesh on the plane as the parent, and the missile as the child. You will need to know a little bit of scripting to do this though.
« Reply #24 on: April 18, 2011, 11:52:23 AM »
Thanks
You will need to know a little bit of scripting to do this though.
D'OH!!
« Reply #25 on: April 19, 2011, 04:55:47 AM »
Istill cant ge it to work!
 :-[

jestermon

« Reply #26 on: April 19, 2011, 05:06:28 AM »
Istill cant get it to work!
 :-[
I really can't teach you scripting. If you don't understand what the Local3Parent function does, then I have nothing to suggest.
« Reply #27 on: April 19, 2011, 05:10:36 AM »
Ok
« Reply #28 on: August 11, 2011, 02:33:05 AM »
Can you link it to a plain because i have tried to place everything on the plain, linked the terrain camchase and when i start it comes up with an error saying:  OUT_0 not declared line 23 pos 4!
and i think that is something to do with the sprite but i don't know how to solve it?

Please Help. Thanks
New 3DFoundry:3DFoundry.tk
Pages: 1 [2]