How can i set talking animation delay to 0? (SOLVED)

Started by proximity, Thu 23/02/2006 13:35:03

Previous topic - Next topic

proximity

 Hi :) i have voice speech dialogs in my game, but talking animations are slow compared to walking animations. i guess its delay is 3 or 4. i set my characters animation delay to 0. it's ok with walking animations but while characters are talking, delay is occuring.

   i checked FPS by Debug command. FPS was not changing while talking. i also set game speed to 200. Again, talking animations were slower than walking. So, where is the problem ? How can i set talking animation delay to 0 ?

  i tested it on AGS 2.62. i have 20 frames of walking and 12 frames of talking.
it's not a big deal but talking animation looks nicer on delay of 0. Any suggestions ?
Proximity Entertainment

strazer

You can change the talking animation speed for all talking views by setting the game.talkanim_speed variable:

Code: ags

  game.talkanim_speed = 0; // default is 5


in the game_start function, for example.

If you only need it for one talking view: Since you now know the default delay is 5 game loops, you could simply try setting each talking frame's delay to -5.

proximity

Thanks strazer, i didn't know default delay was 5.  Just one more question. if i make game.talkanim_speed=0 and manually delay of each frame to minus variables ex. -2. What would be the result ? is it same thing as raising game speed ?
Proximity Entertainment

strazer

No idea, it probably won't go lower than 0 and if it does, maybe it skips some frames. Try it out.

proximity

Thank you for helping strazer . This will solve my problem.
Proximity Entertainment


SMF spam blocked by CleanTalk