Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Text speed  (Read 6203 times)

0 Members and 1 Guest are viewing this topic.

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Text speed
« on: August 07, 2004, 07:52:03 AM »

I have tried to make a text speed slider without much success. It works, but not they way I'd want it to. irst of all, the 10 000 ms is way too long a delay, nobody will ever need it. I would want to scale this value. Second, I tried to make the slider so that when it's at its rightmost position, the speed is at its fastest and when it's at its leftmost position it is at its lowest. At the moment it's vice versa.

Any insight? Thanks, you're great :D
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Text speed
« Reply #1 on: August 07, 2004, 08:09:25 AM »

Well it's higly dependant on how your slider is implemented. I'd suppose the 10,000 limit is somewhere hardcoded in the script...? So must be the code to calculate the actual from slider position.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Text speed
« Reply #2 on: August 07, 2004, 09:51:31 AM »

Fred prealpha version by Forbidden games has such an option. You can get the sources from here http://master.math.upatras.gr/~odnorf/dreams/?show=downloads
Logged
fl*p

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Re: Text speed
« Reply #3 on: August 08, 2004, 09:01:44 AM »

I already downloaded that, but I must have missed something when studying the code.  ::beer
Logged

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Re: Text speed
« Reply #4 on: August 09, 2004, 09:10:07 AM »

Nope. The Fred game only scales the values, and the slider works the "wrong" way. Can anyone advise me on how to edit the Fred code to suit my needs?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Text speed
« Reply #5 on: August 09, 2004, 01:21:51 PM »

I'll try to post my slider code when I get home, ok? Perhaps it will be helpful for you. It least my slider is horizontal :)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Text speed
« Reply #6 on: August 09, 2004, 06:00:41 PM »

Ok, here's my slider code. I suppose it's quite similar to McCoy's. To use it, attach this script to any button on your settings window.

http://dead-code.org/download/slider.script

The MinX and MaxX variables specify the bounds of the slider button; on changing slider's position a SetVolume method is called with a value ranging from 0 to 100. If you need other range of values, just change the "* 100" part. Of course you can omit all the actual volume setting code if you don't need it.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Re: Text speed
« Reply #7 on: August 10, 2004, 08:52:23 AM »

Thanks, I'll get cracking.
Logged

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Re: Text speed
« Reply #8 on: August 10, 2004, 06:24:56 PM »

Otherwise swell, except that I was talking about text SPEED, not volume... I actually have written a slider script with the help of the Fred code.

And when testing I noticed that the ability to scale between 10 and 10 000 milliseconds isn't that bad. However, it really would be good if the slider movement could be changed so that when the slider is at its rightmost position, the delay is 10 ms, and when it is in the leftmost position the delay is 10000 - just for consistency's sake, as the volume sliders work that way too.

A high delay time means a slow text speed and vice versa. I'd like the slider to show the text speed not the delay time...
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Text speed
« Reply #9 on: August 10, 2004, 06:37:09 PM »

Otherwise swell, except that I was talking about text SPEED, not volume...
Yeah, I know, I was just trying to inspire you. After all, changing it from volume to text speed would mean changing one line of code (the SetVolume call).

Also, to invert the value just do something like FinalValue = 10000 - SliderValue;
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

deadworm222

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 197
  • Wintermute Army
    • View Profile
Re: Text speed
« Reply #10 on: August 11, 2004, 09:09:55 AM »

 :-[

Back to fruitless testing.
Logged
 

Page created in 0.043 seconds with 19 queries.