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: Script noob  (Read 661 times)

« on: September 21, 2013, 11:43:18 PM »
How to make my car(car object) manually fly with gear. I know nothing about scripting
« Reply #1 on: September 22, 2013, 05:06:02 AM »
My friend, posting the same question in a different (and wrong) board is not going to help you. At all.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #2 on: September 23, 2013, 12:06:15 AM »
« Reply #3 on: September 25, 2013, 01:14:58 AM »
Ok, I have Created a game but from help, so far I knew, I will press enter and the text will hide. I have done this with event object. But at the same time the car will dash. I have made for this,
Void main
Second braket
if (true iKeydown (idontknowtheentercode)
void iObjectStart(OBJunderscore22);
Second braket close

Will that work?
« Reply #4 on: September 25, 2013, 01:51:34 AM »
Yes, that will work.

void Main()
{
   if (iKeyDown(iKeyCode("DIK_RETURN"))) iObjectStart(OBJ_x);
}

"true" and the second "void" are not necessary.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #5 on: September 25, 2013, 08:29:15 AM »
Oh, that did not work. I typed:-
void Main()
Sb
  if (iKeyDown(code("DIKUSRETURN")))
iObjectStart(OBJus0);
Sbclose

I gave 13 and 0 for enter and -1 for any key instead of iKeyCode.
Added 2 objects script and force. Force connected with car also. Working at start unchecked. Intensity 10000. Local orientation checked. Car recipient. Script ignore. Script working at start unchecked.
« Reply #6 on: September 26, 2013, 08:29:45 AM »
It's "iKeyCode", not "code".

I gave 13 and 0 for enter and -1 for any key instead of iKeyCode.

What are you talking about?

Added 2 objects script and force. Force connected with car also. Working at start unchecked. Intensity 10000. Local orientation checked. Car recipient. Script ignore. Script working at start unchecked.

Try adding a sprite and use iObjectHide(OBJ_x); to test if the if statement even works, otherwise there is a problem with the rest of the project.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #7 on: September 26, 2013, 12:48:28 PM »
Two things -

Firstly, Roberto told you the exact script - why change it?
Secondly, setting "Script working at start" to unchecked means the script doesn't work at the start, unless you are starting it with another object it will remain not working throughout so... will not work
« Reply #8 on: September 27, 2013, 03:42:46 AM »
Owa, I did but then my keyboard stopped working. I dont know why. But then another keyboard, car stooped doing anything when I pressed arrow keys. Other key like turbo worked. There is problem with script related something?
« Reply #9 on: September 27, 2013, 04:14:54 AM »
Sorry sorry, I solved that but adding only force It didn't worked.
void Main ()
Sb
   if (iKeydown(iKeycode("DIKUSRETURN)))
iobjectStart(OBJUS0);
Abc

All checked wastart. Force added to car. Car added to terrain, camchase, G force skinmesh etc etc
« Reply #10 on: September 28, 2013, 06:18:58 AM »
It sometimes work but always force works, not the car.
« Reply #11 on: September 28, 2013, 09:02:16 AM »
It is solved. But I found no reference for an object start after another object is executed.
« Reply #12 on: September 30, 2013, 04:17:38 AM »
Help...I wrote a script. It is:-
Float Force equals 0
void Main()
{
    if Force  >  0
iObjectStart(OBJ_0);
OUT_22 = Force;
}
script added event timer as obj 0 and force as obj 22. Event timer added force and script as ignore and car and it'd belongings as hide. Start time 1 and stop time as 100. Force added rigid body as recepient. Turbo as script no. 1 and event timer and this script as ignore.
I wanted to dash the
car and then hide.
But it did not work.
What should I do?.
Pages: [1]