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: new 3D game  (Read 917 times)

« on: September 26, 2009, 03:54:16 PM »
hello im new using this program and im creating a 3D online game sorta like wow but i dont know how to add the weapons and stuff like that was wondering if someone could make a tutorial or help me thanks :P
« Reply #1 on: September 27, 2009, 03:30:35 PM »
hi, and welcome to rad.

do you know something about the script editor? (or programming languages like c, c++ etc. )
if you want to implement something like towers or other static enemies its not really problematic to make them.

you can easily controll if youre character is near tho them with:  (controll of a flamethrower)

int proxi;
Quaternion orientation1;
Vector3 pos1, pos2, pos0, pos3, UpLoc;


   iObjectLocation(OBJ_xxx,  pos1); //obj_88 = tower
   iObjectLocation(OBJ_yyy ,pos2); //obj_22 = target
   iObjectLocation(OBJ_zzz  ,pos3); //flame ps

   pos0 = pos1-pos2;
   
proxi = iVectorLengthSq(pos0);      // returns range to target

     if (proxi < 300)                 //tower range
     {
        UpLoc = Vector3(0,1,0);
        iQuaternionLookAt(orientation1,pos2-pos3, UpLoc);
        iObjectOrientationSet(OBJ_zzz,orientation1);

       
         if (active == 0)
         {           
            active = 1;                  //return if the tower already got a target
            OUT_177 = IN_177+10;                         //tower dmg
         }
    }

     if ((proxi > 300)&&(active == 1))   
     {
        active = 0;
        OUT_177 = IN_177-10;
     }
« Reply #2 on: September 27, 2009, 03:41:39 PM »
actually, there's a turret made without script at all.
http://www.3drad.com/forum/index.php?topic=2505.0

bisoft, I dont want to sound bitchy :P but if you start facing a lot of 'I dont know how' maybe and I say JUST MAYBE you should consider start with something simpler... you know, the infamous "learning process", damn it!  ::)
Crashing Boxes - winner of the 3d games category at the 5th Uruguayan video game contest
get a copy for your iPad/iPhone!
« Reply #3 on: September 27, 2009, 04:07:50 PM »
hmm didn't tried or searched for one without a script because i like scripting more  ;D

i think with a good loop its alot easier controlling a lot of towers (with god performance) and you need less event on proximity objects and things like that
(for games like wow i would prefer to make the dmg not with a projectile and event on collision object... in my opinion its better to
controll it with a timer (some seconds after projectile start) and chose than a chance to hit the player.)


but you are right, loop... it would be better if he begins with an easier game if he never used a programming language before.
« Reply #4 on: September 27, 2009, 04:13:35 PM »
i have never played that game before, but from what it looks like, it may be possible in 3d rad, but will take a LOT of work.

i'd just say play around with other things in the editor first and learn what everything can do, etc.

yeah, i wouldn't suggest having more than 3 or 4 of those scriptless turrets as it will get messy in the editor. maybe find a way to rig a turret model to have a bone joint and control it with a script and have a projectile object following the barrell.

Currently using 7.22
Pages: [1]