On 26 April 2012 11:02, James Paige <[email protected]> wrote: > On Wed, Apr 25, 2012 at 03:56:51PM -0700, Adam Perry wrote: >> On Wed, Apr 25, 2012 at 3:55 PM, James Paige <[email protected]> >> wrote: >> > On Wed, Apr 25, 2012 at 03:47:40PM -0700, Adam Perry wrote: >> >> Is there any way to alter speedcontrol with a plotscripting command? >> >> There should be! >> > >> > There isn't. >> > >> > We will certainly be adding the ability to alter speed control in custom >> > in the future, but I do not want to to be modifyable by plotscripting. >> > >> > I'll be the script that you want to write would just increase it once at >> > game start and never touch it again, right ;) >> > >> >> Yyyy--maybe? > > The main reasons I can think of why we have not already implemented > customizable speed control are > > 1) speed control currently influences keyboard input sensitivity in most > places.
I recently rewrote key repeat handling, so no, it doesn't anymore (what a relief!) (Default is 500ms before repeat, 55ms between repeats. keyval arguments can be used to override these. slowkey is just a wrapper around keyval, see allmodex.bi) > 2) There is no way to control the frame rate of animations in battle > > #1 definitely needs to be resolved. I think the slowkey() function that > is already used in the sprite editor could be used to smooth out input > sensitivity independantly from speed control, but TMC knows more about > that code than I do, so i will let him correct me on that. > > #2 doesn't strictly need to be resolved before the feature is > impelemented (in fact, it might be easier to fix after custom speed > control is working) > > There might be a #3 I am forgetting about. :) > > --- > James I don't want to see a script command to set the frame rate implemented until after we figure out the proper way to make the frame rate adjustable (as a setting in Custom). The problem is mainly animation rates. Measure frame times in ms or ticks? We don't even have definable animations yet, so this is a golden opportunity to work that out. Also, I think it could be a good idea to separate the frame rate and the tick rate. The frame rate could be higher than the tick rate for smoother movements and camera pans (which frankly, look ugly at 18fps). I already wrote an experimental patch for this years ago, worked nicely. But it requires having two different script interpreter states: scripts which are called either per game tick, or per frame. Which is something I think we need anyway, because graphical effects like parallax or anything else depending on hero, npc, or camera position suffers from a one tick lag! _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
