You are not logged in. Please login or register.
Active topics Unanswered topics
Search options (Page 3 of 4)
Maratis forum » Posts by Almighty Laxz
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.
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?
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?
Thank you, this worked.
Thank you, I am glad the slowness is gone on mac.
Thanks, I will try looking into render to texture for splitscreen.
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?
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.
Uploaded a new video of playing around with the boost speed.
http://youtu.be/2Z6YQKSzPFI
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
Maratis seems to be running slightly slower than usual on my windows desktop too. I think it may be the less resource thing.
Good! I am glad this was fixed.
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.
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?
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.
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.
Yeah, that sounds like a good idea. Please tell when you upload it.
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.
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?
A new video of daytime. I have a decent screen recorder now. http://youtu.be/v6Q3zWvJSCM
It's running slow for me on mac.
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.
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
Yeah it's all lua, i'll try making a video sometime soon.
Posts found [ 51 to 75 of 84 ]
Maratis forum » Posts by Almighty Laxz
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.