Page 3 of 4
Re: Shakin the camera (Solution found)
Posted: Mon Oct 01, 2012 10:29 am
by petri
Montis wrote:You probably restarted the editor. That's required to reload the assets for now (bug).
Actually I just checked with 1.2.12 and textures and sounds are reloaded when you select Reload Project from menu. Are you sure it does not work?
Re: Shakin the camera (Solution found)
Posted: Mon Oct 01, 2012 11:11 am
by Neikun
This happened in the version previous to 1.1.12
Re: Shakin the camera (Solution found)
Posted: Mon Oct 01, 2012 11:27 am
by petri
Ok, thanks. I'll remove the bug from my todo list.
Re: Shakin the camera (Solution found)
Posted: Tue Oct 02, 2012 7:19 pm
by Dinasty
there is a way to set how much time the camera shakes?
Re: Shakin the camera (Solution found)
Posted: Tue Oct 02, 2012 11:28 pm
by Neikun
The duration (the second number) variable. It's a number that represents the number of seconds will shake. (can be a decimal such as 0.4 or 1.83)
So to shake the camera at intensity one half for three seconds it would look like this:
Code: Select all
function scareshake()
party:shakeCamera(0.5,3)
end
Re: Shakin the camera (Solution found)
Posted: Fri Oct 19, 2012 4:59 am
by King Semos
Edit, oops I realised I posted in, somewhat the wrong thread, this one is very old. But it was a link given to me in my thread to help solve a problem, sorry for the old thread.
I can't seem to get it working.
I've put some code in an lua script_entity, and I think I've done everything right because it doesn't say it's invalid.
What I've done is caused the shakescreen function to happen when a certain door opens.
Code: Select all
-- the shakes
function shakemgood()
if zdoor:open() == true then
party:shakeCamera(1,1)
end
end
When I toggle the door open and closed, nothing happens.

Re: Shakin the camera (Solution found)
Posted: Fri Oct 19, 2012 5:06 am
by TheLastOrder
Interesting...

Re: Shakin the camera (Solution found)
Posted: Fri Oct 19, 2012 8:39 am
by Decayer
King Semos wrote:
What I've done is caused the shakescreen function to happen when a certain door opens.
Code: Select all
-- the shakes
function shakemgood()
if zdoor:open() == true then
party:shakeCamera(1,1)
end
end
When I toggle the door open and closed, nothing happens.

You need to use zdoor:isOpen(), not zdoor:open().
Re: Shakin the camera (Solution found)
Posted: Fri Oct 19, 2012 2:32 pm
by Ciccipicci
For my dungeons I use this:
http://soundbible.com/suggest.php?q=ear ... e&x=2&y=13
It fits perfectly with the basic shacking camera value copied from the forum with a realistic touch of some rocks falling after the shake effect ends.
Re: Shakin the camera (Solution found)
Posted: Fri Oct 19, 2012 5:54 pm
by TheLastOrder
Batty wrote:LOL
Earthquake sound
Earthquake particle effect
Code: Select all
spawn("fx", 1, 15, 15, 3, "dust")
dust:setParticleSystem("earthquake_dust")
Note: spawn(object, level, x, y, facing, [id])
Thanks to Lmaoboat's LED dungeon display code.
(Sorry for my english)
Hi!! Once I've read all about the original LoG sound (earthquake) and its aplicattion, I post this:
I've been looking for AN HOUR!! a solution to avoid the "loop" in the earthquake sound that repeats.
But nothing...
I've used hidden pressure plates that starts timers (initially stopped) to break the loop, different scripts making all kind of posibilities that I know (including break code properly) without solve that problem...
I'm sure we are missing something...
P.D: infinite earthquake sound as prize for an hour of useless work...