Suddenly accelerated speed ?

Started by Marion, Fri 17/05/2019 14:22:17

Previous topic - Next topic

Marion

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 ?

Crimson Wizard

Are you using Thumbleweed template? They had this as a feature that double click makes character move faster.

Marion

No, I am using the BASS template... :-/

Crimson Wizard

Could you also tell, which version of AGS are you using?


Cassiebsg

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...

Marion

I don't know, I only have one computer... but I can ask my testers, maybe !

Jack

#7
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?

Marion

I will try Fraps. No, I don't have music, I will add one and see what it does :)

Marion

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

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.


Marion

I made the GUI, it displays the character walkspeed repeatedly. It always indicates the normal walkspeed, even when the character accelerates...  :confused:

Cassiebsg

Maybe try and make a video of it?
There are those who believe that life here began out there...

Crimson Wizard

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.

Marion

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.


Crimson Wizard

Idk, this looks like scripted behavior to me :/. Do you have only script you wrote yourself or using someone elses modules?

Marion

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

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?

morganw

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.

Marion

No, the module doesn't interfere with the walk speed in any way.

I should check the script about the distance...  :confused:

Jack

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?)

Marion

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

SMF spam blocked by CleanTalk