I did for Linux x64 because the other links do not work.
2 2015-11-19 14:11:29
Re: Maratis Not Rendering (Anything Really) (6 replies, posted in General)
You need to change the render in a fixed.
3 2014-12-30 03:20:01
Re: little game. The tower defens. (2 replies, posted in Showcase)
4 2014-12-29 05:15:58
Topic: little game. The tower defens. (2 replies, posted in Showcase)
5 2014-12-03 16:26:57
Re: Call for contribution : we need you ! (64 replies, posted in News)
Linux 64 : bryce : link
The link does not work, where can I download it?
6 2014-10-02 02:42:23
Re: How to get the position of a clone? (2 replies, posted in Scripting)
Sphere = getObject("Sphere")
bullet = getClone(Sphere)
function onSceneUpdate()
pos = getPosition(bullet)
print("x="..pos[1].." y="..pos[2].." z="..pos[3]) --checking.
translate(bullet, {0, 1, 0}, "local")
end
7 2014-08-27 13:55:14
Re: New Maratis scene editor based on the FLTK toolkit (109 replies, posted in External Tools)
good job, Sponk!!!
is it possible to implement the creation of primitives? createCube(), createSphere() and so on?
8 2014-08-19 08:27:53
Re: Teliport design (3 replies, posted in General)
all your requests I made in one project.
video: http://youtu.be/ReC8ndoGJtM
project: https://yadi.sk/d/O7wnVe7_a2e5h
9 2014-08-15 06:50:56
Re: Trigger a Door Opening (2 replies, posted in General)
Yes, this can be done with triggers. Here is my example:
video - http://youtu.be/MB483UITPdk
project - https://yadi.sk/d/edF3-ZgPZiXDU
10 2014-08-07 04:53:57
Re: my project for the competition (30 replies, posted in Showcase)
thanks for the kind words, but actually there is not all good. I did this game in a hurry, so there are a lot of bad code. Almost half of the code can be reduced.
11 2014-08-07 04:39:32
Re: Setting up a Trigger?? (3 replies, posted in General)
You can also interact with a single trigger.
function onSceneUpdate()
if onEnterTrigger(triggers[1],player) then
--...
end
end
12 2014-08-07 03:40:58
Re: Setting up a Trigger?? (3 replies, posted in General)
Not quite sure what you want to understand so I will write a detailed tutorial on the triggers.
1) Download the cube model. Make the following settings:
invisible = true
Physics (Box) = true
ghost = true
2) Create 3 copies of the cube (Ctrl + D). And rename them (trigger1, trigger2 and trigger3)
3)Scripting. Create a main script and open it.
- get our triggers.
--you can do this:
triggers = {getObject("trigger1"),getObject("trigger2"),getObject("trigger3")}
--But better to do it through the loop.
triggers = {}
num_triggers = 3 --the number of triggers.
for i=1,num_triggers do
triggers[i] = getObject("trigger"..i)
end
--it's the same thing, if done manually:
--triggers[1] = getObject("trigger1")
--triggers[2] = getObject("trigger2")
--triggers[3] = getObject("trigger3")
Now let's write a function entry trigger.
function onEnterTrigger(trigger,entity)
if isCollisionBetween(trigger, entity) then --if collision
return true
end
end
Now, to verify create three cubes. Applied physics them and place them on the triggers. And create the camera.
get these cubes.
cubes = {}
num_cubes = 3
for i=1,num_cubes do
cubes[i] = getObject("cube"..i)
end
Let's do that in contact with triggers, cubes disappeared.
function onSceneUpdate()
for i=1,#triggers do
if onEnterTrigger(triggers[i],cubes[i]) then
deactivate(cubes[i])
end
end
end
13 2014-08-06 03:22:35
Re: Standard and Fixed render? (3 replies, posted in General)
strange, but on my work PC Standart Render not working and Fixed Render works.
14 2014-08-06 03:19:14
Re: my project for the competition (30 replies, posted in Showcase)
Thank you!
It uses a lot of tables too...
I use OOP
15 2014-08-05 02:44:35
Re: my project for the competition (30 replies, posted in Showcase)
thank you, MaratisFan.
16 2014-08-05 02:24:26
Re: Sound Test: Making sounds in independent spaces + Project file (4 replies, posted in General)
Sorry, try downloading now.
https://yadi.sk/d/1KMdiurOZ6LJ9
17 2014-08-04 09:54:41
Re: Sound Test: Making sounds in independent spaces + Project file (4 replies, posted in General)
I did this by using triggers.
https://yadi.sk/d/1KMdiurOZ6LJ9
18 2014-07-28 04:13:34
Re: Using Blender3d for the Maratis editor (11 replies, posted in General)
it would be great!
19 2014-07-28 04:10:38
Re: Call for contribution : we need you ! (64 replies, posted in News)
I can try. But I have never done this before. XD
20 2014-07-09 13:42:38
Re: SetParent() (2 replies, posted in General)
I never worked with source code, probably I will not cope . But I'll still try. Thanks for the reply.
21 2014-07-09 12:33:52
Topic: SetParent() (2 replies, posted in General)
I use setParent(object1,object2) to attach object1 to object2. but I can detach these objects?
setParent(object1, 0) -- does not work!
22 2014-07-07 11:58:23
Re: rotate the object? (6 replies, posted in General)
I don't use behavior, I use Lua function.
I copied all three functions:
function getLength2d(vec)
...
end
function normalize2d(vec)
...
end
function lookAt(object, dir, rotSpeed)
...
end
obj1 = getObject("obj1")
obj2 = getObject("obj2")
function onSceneUpdate()
dir = getPosition(obj2)
lookAt(obj1, dir, 1)
end
nothing happens.
23 2014-07-07 09:43:37
Re: rotate the object? (6 replies, posted in General)
I have not function lookAt(). What am I doing wrong?
--onSceneUpdate()
dir = getPosition(object2)
lookAt(object1, dir, 1)
24 2014-06-24 10:42:06
Re: rotate the object? (6 replies, posted in General)
Thanks anael! This is exactly what I need.
25 2014-06-24 03:16:37
Topic: rotate the object? (6 replies, posted in General)
hi all!
how to rotate the object in the direction of another entity only on the Y axis (lua)?