26

(13 replies, posted in Tutorials/Examples)

Hi all! great examples, Vegas!

Here is my function of receiving a distance:

function distance(entity1,entity2)
    local pos1 = (getTransformedPosition(entity1))
    local pos2 = (getTransformedPosition(entity2))
    return (math.sqrt(math.abs(math.pow((pos2[1]-pos1[1]),2)+math.pow((pos2[2]-pos1[2]),2) ) ) )
end
--the function call:
--1)
print(distance(player, enemy))

--2)
if distance(player, enemy) < 100 then
    --
end

if it is someone useful, can lay out other functions.

27

(19 replies, posted in Editor)

anael wrote:

Another variant :

looks great!
Are there any functional changes? Martis a great engine, but to become popular it lacks the simple things (Navmesh, water, insufficient LUA API) .

28

(3 replies, posted in General)

added highlighting API. The link is the same.
http://savepic.net/5112664m.png

29

(3 replies, posted in General)

Hi all! 
I made a plugin for Notepad++ with automatic completion Maratis API . I think someone come in handy. wink
Later I will make the backlight commands.
http://savepic.net/5168901m.png

1. Download the archive.
2. Extract all the contents in Maratis/Bin/
3. to the question: to replace? click Yes.

function foo() end  foo = function() end


in the Cryengine used to this style of programming.
also it is possible in javascript to write.

joe = {name =nil, age =nil, gender =nil}   
joe.name = "Joseph" 
joe.age = "24" 
joe.gender = "Male"


what's special? Lua allows you to do much more interesting things!

31

(30 replies, posted in Showcase)

download:
Game.exe
Project

P.S. This is not a full game, but it is quite suitable as the basis for the game.

32

(13 replies, posted in Scripting)

I want to help You, but unfortunately I can not understand.. Google translate is not perfect. smile

33

(6 replies, posted in General)

I can't understand what exactly the problem.. I don't always understand English.

34

(30 replies, posted in Showcase)

the game is almost ready! http://youtu.be/vOrpkTKV1K8

35

(30 replies, posted in Showcase)

Thank you!

Tutorial Doctor wrote:

I'd like to know how you did your UI elements, it looks like you used material animation for the stars, a loop go the score talley, and text object for tool tips.

Everything is very simple. The star has two sides, I just flip it at the right time smile . And all the UI elements is just plane with textures. The text attached to the cursor appears in the right time.

36

(30 replies, posted in Showcase)

Thank you! Here is a little completed smile
http://www.youtube.com/watch?v=MxQwn7DiugM

37

(6 replies, posted in General)

Hi! here: https://code.google.com/p/maratis/downloads/list
here's the direct link: https://maratis.googlecode.com/files/Ma … -win32.zip

38

(30 replies, posted in Showcase)

Thank you! I'll try to finish this game and put her sources on this forum.

39

(8 replies, posted in General)

scene2 = getScene("scene_name")
object = getObject(scene2,"object_name")


deactivate(object)

40

(30 replies, posted in Showcase)

thanks Vegas, now everything is beautiful explodes. smile
http://youtu.be/i2X0K3wtZEE

41

(8 replies, posted in General)

1. Yes, you can.
scene2 = getScene("scene_name")
object = getObject(scene2,"object_name")

42

(30 replies, posted in Showcase)

Thank You, Vegas!!! It is very beautiful!! smile smile

43

(30 replies, posted in Showcase)

thank you! would be great... but I don't know how to use animated textures in Maratis. sad

44

(30 replies, posted in Showcase)

completely changed the gameplay. http://youtu.be/C9O9eGIVqOI

45

(8 replies, posted in General)

Hi! I too faced this problem. Try to change the radius and the position of the light source.

46

(6 replies, posted in General)

Thank you, anael! This is what I need!!!

47

(6 replies, posted in General)

thanks for the help! I will try to do something.

48

(6 replies, posted in General)

no, I want to make the 3D cursor.

49

(6 replies, posted in General)

How you can bind the object to the cursor? I want to at some moment the object followed by the cursor.

50

(30 replies, posted in Showcase)

Hi Tutorial Doctor! No, I used a different engines. Maratis, Leadwerks, Xors3D, Blitz3D..