Author Topic: Suddenly accelerated speed ?  (Read 249 times)

Suddenly accelerated speed ?
« on: 17 May 2019, 14:22 »
Hello ! I am working on my new game :)
But there is something strange I never saw before with AGS, maybe it's an option of the last version ?
Sometimes, when I click on a hotspot or a object, my character walks towards it in accelerated speed and animation. And, other times, he just doesn't, and walks normally.
Why is that ? How can I fix it in order to have my character walk in a constant speed ?

Re: Suddenly accelerated speed ?
« Reply #1 on: 17 May 2019, 15:02 »
Are you using Thumbleweed template? They had this as a feature that double click makes character move faster.

Re: Suddenly accelerated speed ?
« Reply #2 on: 17 May 2019, 15:51 »
No, I am using the BASS template... :-/

Re: Suddenly accelerated speed ?
« Reply #3 on: 17 May 2019, 16:59 »
Could you also tell, which version of AGS are you using?

Re: Suddenly accelerated speed ?
« Reply #4 on: 17 May 2019, 18:21 »
It's the 3.4.1 :)

Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
    • Cassiebsg worked on a game that was nominated for an AGS Award!
Re: Suddenly accelerated speed ?
« Reply #5 on: 17 May 2019, 18:31 »
This might be unrelated, but it sounds a bit like if your PC hangs for a second and then speeds everything up to catch up.
Is this something you can replicate in other computers/systems?
There are those who believe that life here began out there...

Re: Suddenly accelerated speed ?
« Reply #6 on: 17 May 2019, 19:11 »
I don't know, I only have one computer... but I can ask my testers, maybe !

Jack

  • Think deviant
    • I can help with AGS tutoring
    • I can help with scripting
    • I can help with story design
    • Jack worked on a game that was nominated for an AGS Award!
Re: Suddenly accelerated speed ?
« Reply #7 on: 17 May 2019, 20:18 »
Run Debug(4, 1) to display the FPS count from AGS every frame, and if possible use something like Fraps to provide an external overlay of how many frames you're actually getting.

Do you have music playing in the game when this happens, and is it affected?
« Last Edit: 17 May 2019, 20:20 by Jack »

Re: Suddenly accelerated speed ?
« Reply #8 on: 17 May 2019, 20:40 »
I will try Fraps. No, I don't have music, I will add one and see what it does :)

Re: Suddenly accelerated speed ?
« Reply #9 on: 17 May 2019, 20:59 »
So I tested. The music plays well, no problem even when my character accelerates. And I used FRAPS, it indicates the same frame rate each time.

Jack

  • Think deviant
    • I can help with AGS tutoring
    • I can help with scripting
    • I can help with story design
    • Jack worked on a game that was nominated for an AGS Award!
Re: Suddenly accelerated speed ?
« Reply #10 on: 17 May 2019, 21:04 »
It really does sound like the walk speed changes. You could display the walk speed for that character in a GUI on each frame to confirm.

Re: Suddenly accelerated speed ?
« Reply #11 on: 17 May 2019, 21:29 »
good idea, I will try :)

Re: Suddenly accelerated speed ?
« Reply #12 on: 17 May 2019, 21:33 »
I made the GUI, it displays the character walkspeed repeatedly. It always indicates the normal walkspeed, even when the character accelerates...  :confused:

Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
    • Cassiebsg worked on a game that was nominated for an AGS Award!
Re: Suddenly accelerated speed ?
« Reply #13 on: 17 May 2019, 21:49 »
Maybe try and make a video of it?
There are those who believe that life here began out there...

Re: Suddenly accelerated speed ?
« Reply #14 on: 17 May 2019, 22:51 »
Do you have "MovementLinkedToAnimation" set in Character properties? Don't remember how this works but maybe it's animation speed that increases for some weird reason.

Re: Suddenly accelerated speed ?
« Reply #15 on: 18 May 2019, 08:43 »
Yes,  "MovementLinkedToAnimation"  is set, but I always do that and I never had any character accelerate suddenly when I click on hotspot or object. I will make a video to show you.

Re: Suddenly accelerated speed ?
« Reply #16 on: 18 May 2019, 09:02 »

Re: Suddenly accelerated speed ?
« Reply #17 on: 18 May 2019, 09:51 »
Idk, this looks like scripted behavior to me :/. Do you have only script you wrote yourself or using someone elses modules?

Re: Suddenly accelerated speed ?
« Reply #18 on: 18 May 2019, 10:00 »
I use the Phylactere module but it never did that in my previous games. I didn't write much code for the moment, and no custom script.

Mandle

  • NO PIXEL LEFT BEHIND!!!
    • Mandle worked on a game that was nominated for an AGS Award!
Re: Suddenly accelerated speed ?
« Reply #19 on: 18 May 2019, 15:20 »
Is the module very sensitive to detecting a double-click and has a built-in function to accelerate walking if double-click is used for fast travel means?