51

(11 replies, posted in Scripting)

Whoops, it actually didn't work, its still looping.
I now have:

Sound0 = getObject("Sound0")
SOUND = {impact = 0}
function onSceneUpdate()
   function play_impact()
    if SOUND.impact == 0 then playSound(Sound0) end
       SOUND.impact = 1
   end
   function stop_impact()
   SOUND.impact = 0
   end
if isCollisionBetween(Car, Ground)
then changeCurrentCamera(Camera1)
deactivate(Text0)
deactivate(Text1)
camcycle = 1
play_impact()
else
stop_impact()
end

Putting the functions after isCollisionBetween doesn't work, it stops the script working.

52

(11 replies, posted in Scripting)

Ok, I now have:

Sound0 = getObject("Sound0")
IMPACT = {Sound0 = 0}
   function play_impact()
       if IMPACT.Sound0 == 0 then playSound(Sound0) end
       IMPACT.Sound0 = 1
   end
   function stop_impact()
   IMPACT.Sound0 = 0
   end
function onSceneUpdate()
if isCollisionBetween(Car, Ground)
then changeCurrentCamera(Camera1)
deactivate(Text0)
deactivate(Text1)
camcycle = 1
if IMPACT.Sound0 == 0 then play_impact()
else
stop_impact()
end
end

But it still loops. Any idea why?

53

(11 replies, posted in Scripting)

Hi,
I am having problems getting a sound to play once in my script.
At the start:
soundplay = 0
   function playsound()
       if soundplay == 0 then playSound(Sound0) end
       soundplay = 1
   end
Then:
function onSceneUpdate()
if isCollisionBetween(Car, Ground)
if soundplay == 0 then playsound()
else
soundplay = 0
end
end

It loops repeatedly, but I'm not sure why, could anyone help?

54

(2 replies, posted in External Tools)

Thank you, this worked. smile

55

(2 replies, posted in External Tools)

Hi,
I am trying to get a concrete texture to repeat across a plane on blender.
1
2
3
Those are the settings I have for my diffuse, I also have a specular and normal.
material
That is my material settings.
view
And that is the plane.
maratis
And that is what it looks like in maratis, not repeating.
So I can't work out what why it isn't repeating. Could anyone please help?

56

(1 replies, posted in News)

Thank you, I am glad the slowness is gone on mac.

57

(10 replies, posted in General)

Thanks, I will try looking into render to texture for splitscreen.

58

(10 replies, posted in General)

Hi,
I was just wondering if multiplayer would be possible to make, over LAN would be pretty hard i'm sure but what about splitscreen? Half the screen for one camera, the other half for the other, this would make it possible for 2 cars in my game.
What do you think?

59

(18 replies, posted in Showcase)

Accidently deleted the windows download, I'll try and reupload it when I can. Although I am working on a new version which may be ready before I get to reupload it. I am going to wait for the next engine update so I can be sure it is lag-free on mac and has the best possible frame rate on windows.

60

(18 replies, posted in Showcase)

Uploaded a new video of playing around with the boost speed.
http://youtu.be/2Z6YQKSzPFI

61

(18 replies, posted in Showcase)

I am releasing the published V0.11 for Windows, I plan to release it for mac after the next engine update fixing the scons physics issue.
http://www.mediafire.com/download.php?5pu90hpfnn3740p

62

(6 replies, posted in Bug report)

Maratis seems to be running slightly slower than usual on my windows desktop too. I think it may be the less resource thing.

63

(6 replies, posted in Bug report)

Good! I am glad this was fixed.

64

(36 replies, posted in Scripting)

I have some requests,
getMass(Object)
setMass(Object)
getFriction(Object)
setFriction(Object)
These would be useful for if I were to add some buttons for customisation to the car in my car game.
And maybe something like reloadLevel could be useful for resetting every object in a level.

65

(6 replies, posted in Bug report)

Hello,
So in version 3.02 of Maratis my car game was working great with absolutely no lag, but now in 3.1 I get an overall reduced frame rate and giant lag when crashing into my physics brick wall. I just tested an older version of my game, one that doesn't use 3.1 functions and 3.02 had no lag while 3.1 was lagging a lot. I know anael said he updated Maratis with out the lower cpu thing, but I still get terrible lag. Could he of uploaded the wrong one?

66

(35 replies, posted in News)

I tested an earlier and the latest version of my car game with it and it appears about the same but maybe slightly less lag than the other one you sent me. I still can't remember there being this much lag in 3.02.

67

(18 replies, posted in Showcase)

I'm thinking the invisible walls thing is something to do with the car's mass and friction or something, I've played around with it a bit and I think I made it less noticeable.

68

(35 replies, posted in News)

Yeah, that sounds like a good idea. Please tell when you upload it.

69

(35 replies, posted in News)

It's slightly less laggy, but still laggy when smashing a brick wall. The old 3.02 never had any lag at all.
EDIT: I don't think the first mac 3.1 had any lag even though mac publishing was broken.

70

(1 replies, posted in General)

Hello, I have been trying to work out how to make the car from the physics demo play a sound when colliding with anything that isn't itself. I'd rather not have to write out if IsCollisionBetween statements for everything I want it to make a sound with colliding with. So far i've tried using getNumCollisions with no luck. Could anyone please help?

71

(18 replies, posted in Showcase)

A new video of daytime. I have a decent screen recorder now. http://youtu.be/v6Q3zWvJSCM

72

(35 replies, posted in News)

It's running slow for me on mac.

73

(18 replies, posted in Showcase)

I have just added an impact sound for when the car collides with the ground and flips which I have to tweak a bit to try and make it play less often. Also I have to try and figure out what causes the car to look like it runs into invisible walls sometimes, it might be something to do with the weight and friction of the car. I'm always trying to find new interesting ways of putting in physics, like I have added the destructible bus stop and restaurant.

74

(18 replies, posted in Showcase)

I made a small video to show off the night time i am working on with headlights. The video is a bit poor quality because I can't find a decent mac screen recorder.
http://youtu.be/VS44nmbzJC4

75

(18 replies, posted in Showcase)

Yeah it's all lua, i'll try making a video sometime soon.