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]

Author Topic: Scripting turbo  (Read 2282 times)

« on: November 22, 2011, 08:07:59 PM »
Can someone help with a turbo for car when i preess z

jestermon

« Reply #1 on: November 22, 2011, 09:37:01 PM »
No script needed.

1.. Middle mouse click on the car, so that you get it's true location and orientation (the body, not one of the wheels)
2.. Add a force object, and link it to the car
3.. In the Force dialog, select the car as the 'Recipient
4.. Check the 'Local orientation' Check-box in the Force dialog
5.. Set a force 'intensity' that you wish to apply as Turbo - Play with this value
6.. Set the timer (in seconds) in the Force dialog to the time the Force must be active, from firing
7.. Add an EventOnInput
8.. Link the EOI to the Force
9.. Ensure 'Start on Input' is selected for the Force, in the EOI dialog
10. Choose the trigger key for the Input from the 'Input Control' drop down list (Z is 4th from the top)
11.. Zoom zoom.

Oops: I typed the script in invisible ink, hope you can read it.
« Last Edit: November 22, 2011, 09:45:05 PM by jestermon »
« Reply #2 on: November 22, 2011, 09:50:12 PM »
Here's a sample project with 2 examples of a "turbo/boost" - one uses a Force and EventOnInput(basically how jestermon instructed) and the other uses the Acceleration OUT_ parameter for the car.
There's probably a few more ways or variations to 'fake' a turbo effect, but here's a 2-4-1 from me.

I used version 7.03b for the demo
3D Rad: The best abandonware ever!
« Reply #3 on: November 22, 2011, 09:52:47 PM »
No script needed.

1.. Middle mouse click on the car, so that you get it's true location and orientation (the body, not one of the wheels)
2.. Add a force object, and link it to the car
3.. In the Force dialog, select the car as the 'Recipient
4.. Check the 'Local orientation' Check-box in the Force dialog
5.. Set a force 'intensity' that you wish to apply as Turbo - Play with this value
6.. Set the timer (in seconds) in the Force dialog to the time the Force must be active, from firing
7.. Add an EventOnInput
8.. Link the EOI to the Force
9.. Ensure 'Start on Input' is selected for the Force, in the EOI dialog
10. Choose the trigger key for the Input from the 'Input Control' drop down list (Z is 4th from the top)
11.. Zoom zoom.

Oops: I typed the script in invisible ink, hope you can read it.
I was gonna say ;)

jestermon

« Reply #4 on: November 23, 2011, 01:12:09 AM »
How many ways can you peel an orange?
Don't answer that - It's a comparison. :D
« Reply #5 on: November 23, 2011, 09:21:36 PM »
How many ways can you peel an orange?
Don't answer that - It's a comparison. :D

if i give the orange to my feet after school it will peel it self ;D
أهلا :)
« Reply #6 on: November 24, 2011, 02:06:08 AM »
How many ways can you peel an orange?
Don't answer that - It's a comparison. :D

if i give the orange to my feet after school it will peel it self ;D

well that made sense :D
::=::Look at this ::=::
Rally game

The most important thing that happens, you usualy miss it , but after sometime you will remember
 
even if you didint noticed. Go forward and never look back
« Reply #7 on: December 13, 2011, 09:00:21 PM »
The Force object doesnt work.

if i crash and roll i fly into space

jestermon

« Reply #8 on: December 13, 2011, 10:19:04 PM »
The Force object doesnt work.
if i crash and roll i fly into space
Any Jedi master will argue that the force does indeed work.

If the force is always on, and it is set too high, then you actually have a jet engine. A car with a jet engine is supposed to fly.

Set the force value lower, and make sure you set the Force timer to a small timeout value .. say 1 - 3 seconds. Also make sure the force is not "working at start", and start the force with some event such as an Input.

If all else fails, review the StarWars manuals about how to use the force.
(In other words, click on the HELP button, on the Force dialog screen)

Edit:
Ok, here's your Christmas gift.
Tweaking.. that's the secret of a great game. Tweak everything till it works exactly as you want it to. So here's a little project, to get you started. You hit Left-Ctrl to zoom. You can change it to Z or anything you wish. Play around with the force value, and the timeout value, till you get what you need. Look at all the settings and links, and refer to my first post, to see how everything is put together.
I've set the force a little too high (15000,  2 seconds), so that it really zooms, and spins out of control if you turn. Somewhere between (9000, 1.2) and (15000, 2) is the "sweetspot". You'll have to play to find it.

Hope this helps
« Last Edit: December 13, 2011, 11:07:41 PM by jestermon »
« Reply #9 on: December 14, 2011, 01:09:57 PM »
OMG! GUYS i was toataly fragged out for 1 week out of PC can somone explain what THE HELL DOES ALL THE STARWARS PHRAZES DO IN HERE? Well its obvius that Jestermon Is Jedimon or master of Jedis but all other things :D?
::=::Look at this ::=::
Rally game

The most important thing that happens, you usualy miss it , but after sometime you will remember
 
even if you didint noticed. Go forward and never look back

jestermon

« Reply #10 on: December 14, 2011, 01:18:49 PM »
...ALL THE STARWARS PHRAsES..

Turbo for cars, needs Force or Acceleration to work.
"Force" is a physics term. It is also a Starwars term.
I had just read the latest  "Starwars helmet" post before replying to this thread.
My silly sense of humor took on a life of it's own, when I made the "starwars" quips.
« Reply #11 on: February 23, 2012, 05:43:43 PM »
but with the force i lose grip and crash or stay in the air when going up a jump i was thinking about scripting but i cant
« Reply #12 on: March 04, 2012, 02:04:41 PM »
You can get a turbo script from the Pcar Scripted Demo.
Pages: [1]