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 3 ... 6

Author Topic: Script related questions  (Read 8110 times)

« on: October 25, 2011, 01:05:40 AM »
Post your script related questions here. Irrelevant posts will be deleted to keep it clean.
FPS game creator for 3drad and >2000 games GamesAtNight
« Reply #1 on: October 28, 2011, 01:49:54 PM »
How can i learn to script for 3drad?   
is there a tutorial or a list of functions?

EDIT: Thanks jestermon
« Last Edit: October 28, 2011, 06:45:26 PM by KiwiWafflez »

jestermon

« Reply #2 on: October 28, 2011, 02:10:40 PM »
« Last Edit: October 28, 2011, 02:17:53 PM by jestermon »
« Reply #3 on: October 29, 2011, 02:33:56 PM »
Guys how hard is to make script like this :

when you press lets say A key the skinmesh turns 360 degrees and whels on yeach side follow that skinmesh :) i want to make small bike combo game with 3 or 4 different moves :)

Could somone give me a demo? or teach or make this? :) pretty plz
::=::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 #4 on: October 29, 2011, 05:46:09 PM »
Hi this an updated (correct spelling AngelScript, got away with it for 4 years) version.

Thanks GLID3R80 for pointing this out, my dyslexia showing didn't even notice it. Should now be easier to find. or is it Should be easier to find now.

n_iron
« Reply #5 on: October 30, 2011, 08:38:21 AM »
guys can somone help me with this :

dont be rush on my first script :) i'm just trying, but how to use the iObjectSpin(OBJ_44;And this number) i dont get it :)

so basic what i'm trying to make is object 22 is counter it starts points and i object spin i want that it will spin while points are rising

OH also how to make that it would turn just 360 degrees and not more!?

Quote
void Main()
{

   iObjectStart(OBJ_22);
{
   iObjectSpin(OBJ_44,20);
   iObjectSpinSet(OBJ_44,50);
}

}

HELP!
« Last Edit: October 30, 2011, 08:40:33 AM by Daumisx »
::=::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 #6 on: October 30, 2011, 08:45:00 AM »
iObjectSpinSet(OBJ_X,Vector3)
   Return the specified object spin.
   OBJ_X = object handle
   Vector3 = spin vector.
             The vector direction is the axis of rotation (absolute).
             The length of the vector is the rotation speed (spin), in degrees per second.

iObjectSpin(OBJ_0,Vector3(20,0,0));  vector values are the axis x,y,z in this case - spin on the x axis  - forwards like a wheel.

Vector3 spin;
iObjectSpin(OBJ_0, spin);  // get the spin into the vector
iObjectSpinSet(OBJ_22,spin);  //use the vector to pass on the value

No big red letters in your reply please.
« Last Edit: October 30, 2011, 08:47:34 AM by jestermon »
« Reply #7 on: October 30, 2011, 08:47:39 AM »
relax i wont :) thx for explaining me :) oh and also how could i make exact 360 spin? :)

in iObjectSpinSet the Vector3 what value is that? simple numbers or same as in iObjectSpin?

I'm really newbie os i'm trying to find out :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 #8 on: October 30, 2011, 08:52:35 AM »
other problem i dont know how to use if, when ,else when i write

If(object starts)  it says bolean number or smthing like that i would like to know what are these bolean numbers and how to use them :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 #9 on: October 30, 2011, 09:00:09 AM »
other problem i dont know how to use if, when ,else when i write

If(object starts)  it says bolean number or smthing like that i would like to know what are these bolean numbers and how to use them :D

Write down the code that gives the problem, then we can help fix it. A generic question like "boolean or something" means nothing to anyone.
« Reply #10 on: October 30, 2011, 09:11:35 AM »
void Main()
{
   iObjectStart(OBJ_22);
   {
   iObjectSpin(OBJ_0,Vector3(180,0,0));
   }

}

ok this is the first problem i want that when i press the key A (i can make the key probs)

other think with the if i hadnt made anything i just want code

if the car is at the certain location (EOL) than the upper scripts starts if anything else than the script that is upper wont work :) is that clear enough?

So script starts and in the air when you press A it will spin 360 degrees :)
::=::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 #11 on: October 30, 2011, 11:46:56 AM »
You can't spin the car with the script. you need to apply a force to it, in order for this to happen.
« Reply #12 on: October 30, 2011, 11:49:43 AM »
oh man :(

so how about the if could you explain me abit of it also i would like to know where can i  use Else, and when! ?
::=::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 #13 on: October 30, 2011, 12:03:35 PM »
oh man :(

so how about the if could you explain me abit of it also i would like to know where can i  use Else, and when! ?

Only you can teach yourself programming - I can't always spoon feed you.
AngelScript Tutorial
http://www.3drad.com/files/AngleScript_tutorial_lesson.pdf
« Last Edit: October 30, 2011, 02:46:21 PM by jestermon »

11Dogs

« Reply #14 on: November 11, 2011, 07:21:54 PM »
How would I do this in AngelScript?
(C++ snippet)

cout << "Your score is " << playerScore << ". Thanks for playing!";

Is there some easy way to achieve this?
Pages: [1] 2 3 ... 6