Welcome, Guest! Login | Register
Scripting experiment in 3D Rad
Info
Report
45 Posts

I dunno why, but I managed to get a very simple class in 3D Rad.

[EDIT] If the script wasn't edited, the output is 2.
Created on: 2 months ago
Edited on: 2 months ago
Info
Report
18 Posts

Hi Athanatos, If you would like to know more on how to use the class in 3Drad Check out Angelscript website.
I also have tutorial on my website that might help, Link below. It contains a PDF tutorial and project files for a scripted player character and NPC .
I have found you can get far further with 3DRAD if you use scripts to build most objects and characters in your game.

http://www.huntspace.com.au/freeGames.php?cat=online/3D_Tutorial
Created on: 2 months ago
Info
Report
45 Posts

I knew about the AngelScript documentation site before... Just wanted to see if classes really work in 3D Rad.
Created on: 2 months ago
Info
Report
5 Posts

They do work, but I find that I can't use Interfaces in 3Drad.

For instance I have

interface Animation{
void play();
}

class RunAnimation implements Animation{
//implementation
}

but then I can't do something like

Animation runAnimation = RunAnimation();

I can't remember if I'm using the Syntax correctly in this example, but am I doing anything wrong here, or is this the limit for 3drad?
Created on: 1 month ago
Edited on: 1 month ago
Info
Report
18 Posts

Hi, Hawk the syntax for you example should below.


void Main()
{

   Anumation.play();

}

// class decleration
interfaceAnimation Animation;

class interfaceAnimation
{

   void play();

   }

}

The implementation Angelscript is much simpler and easy to understand.

n_iron
Created on: 1 month ago
Reply
Preview
Post
Or use the advanced reply form here...
Sponsored