Page 1 of 1
Slower walkingspeed?
Posted: Sat Jun 01, 2013 7:57 pm
by schnipfl
Is there any way to make the party walk slower?
Re: Slower walkingspeed?
Posted: Sat Jun 01, 2013 10:37 pm
by Komag
Not that I know of, sorry (other than making someone carry too much weight)
Re: Slower walkingspeed?
Posted: Sun Jun 02, 2013 2:58 pm
by schnipfl
It's just.. there is a hall, where torches light themselves, once you enter it.. and if you run through it, it just kills the atmosphere..
Is there maybe some way so I can make the party move 1 step per second, so the player has to watch how the party walks through the hall?
Re: Slower walkingspeed?
Posted: Sun Jun 02, 2013 3:19 pm
by msyblade
You could clone the party, and add an onMove hook. Point it to a counter with a specific name (like cSlowWalk), and if the counter =0, return false. Then you could have pads going down the hall, and when a player steps on it, it sets the counter to 0 (move return false), and starts a 1 second timer that moves the counter to 1 so the party can move. Essentially the party wont be able to move for 1 second after each step, but it may be incredibly tedious for a player trying to walk, because the keyboard is only responding half the time, so playtest it thouroughly.If you need help with the actual onMove hook implementation, bah, ill paste it below
Code: Select all
cloneObject{
name = "party",
baseObject = "party",
onMove = function(self, dir)
if (cSlowWalk:getValue() == 0) then
return false
end
return true
end,
end
}
Okay, place that code at the end of your init.lua and A: Make sure the counter you make is called EXACTLY cSlowWalk, and that there is only one in the dungeon (you can trigger it from any floor). Then tweak the timer for the pace you want to set. Hope you get it working how you want!
Re: Slower walkingspeed?
Posted: Sun Jun 02, 2013 4:33 pm
by Neikun
The only way I can think of making the party walk more slowly is by adding a whole bunch of light sources to the room and bogging down performance.
Alternatively you could have a series of invisible secret doors that open really fast and silently, and every step is a pressure plate that opens the door in front of you. The door would need to open just fast enough to delay you a little. Needs tweaking. Try it!

Re: Slower walkingspeed?
Posted: Sun Jun 02, 2013 4:38 pm
by Sutekh
You could also cover the path with pits and close them at the speed you want the player to move at - moving too fast would result in falling down and having to start again.
