Adventure Game Studio | Forums

AGS Support => Beginners' Technical Questions => Topic started by: Marion on Fri 17/05/2019 14:22:17

Title: Suddenly accelerated speed ?
Post by: Marion on Fri 17/05/2019 14:22:17
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 ?
Title: Re: Suddenly accelerated speed ?
Post by: Crimson Wizard on Fri 17/05/2019 15:02:08
Are you using Thumbleweed template? They had this as a feature that double click makes character move faster.
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Fri 17/05/2019 15:51:04
No, I am using the BASS template... :-/
Title: Re: Suddenly accelerated speed ?
Post by: Crimson Wizard on Fri 17/05/2019 16:59:02
Could you also tell, which version of AGS are you using?
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Fri 17/05/2019 18:21:37
It's the 3.4.1 :)
Title: Re: Suddenly accelerated speed ?
Post by: Cassiebsg on Fri 17/05/2019 18:31:38
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?
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Fri 17/05/2019 19:11:28
I don't know, I only have one computer... but I can ask my testers, maybe !
Title: Re: Suddenly accelerated speed ?
Post by: Jack on Fri 17/05/2019 20:18:25
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?
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Fri 17/05/2019 20:40:21
I will try Fraps. No, I don't have music, I will add one and see what it does :)
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Fri 17/05/2019 20:59:16
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.
Title: Re: Suddenly accelerated speed ?
Post by: Jack on Fri 17/05/2019 21:04:33
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.
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Fri 17/05/2019 21:29:38
good idea, I will try :)
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Fri 17/05/2019 21:33:36
I made the GUI, it displays the character walkspeed repeatedly. It always indicates the normal walkspeed, even when the character accelerates...  :confused:
Title: Re: Suddenly accelerated speed ?
Post by: Cassiebsg on Fri 17/05/2019 21:49:48
Maybe try and make a video of it?
Title: Re: Suddenly accelerated speed ?
Post by: Crimson Wizard on Fri 17/05/2019 22:51:43
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.
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Sat 18/05/2019 08:43:46
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.
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Sat 18/05/2019 09:02:14
Title: Re: Suddenly accelerated speed ?
Post by: Crimson Wizard on Sat 18/05/2019 09:51:00
Idk, this looks like scripted behavior to me :/. Do you have only script you wrote yourself or using someone elses modules?
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Sat 18/05/2019 10:00:56
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.
Title: Re: Suddenly accelerated speed ?
Post by: Mandle on Sat 18/05/2019 15:20:31
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?
Title: Re: Suddenly accelerated speed ?
Post by: morganw on Sat 18/05/2019 17:17:39
Or maybe it is related to distance from the exit? When it accelerated in the video it was when the character had further to walk.
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Sat 18/05/2019 19:00:17
No, the module doesn't interfere with the walk speed in any way.

I should check the script about the distance...  :confused:
Title: Re: Suddenly accelerated speed ?
Post by: Jack on Sat 18/05/2019 21:01:07
It may be a coincidence but I noticed it doesn't do this when the character is moving, only when they are standing still. That's something else to investigate. You could also add animation delay of that character to the GUI.

BTW, I use the Phylactere module all the time and have made changes to it, it wouldn't cause this. It is innocent.

That is one mighty fancy game you got there, pardner. You should definitely fix 'er up. (Why haven't you fixed this issue yet? You yeller?)
Title: Re: Suddenly accelerated speed ?
Post by: Marion on Sun 19/05/2019 08:35:36
I figured it out : it comes from a script I made (I totally forgot) to have my Idle View animated at the same animation speed as the other views (because they were far too slow). So the problem came from the animation speed and not the walk speed. Thank you all for your help :)

Jack : Thank you very much, partner ! :) That's one of my biggest project for sure... a western / fantasy adventure game. You can follow the  making-of on the Facebook page of the project (it's in French but the game will be translated into English) : https://www.facebook.com/WendyWhedonAGS