Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: misterjuly on April 06, 2021, 02:32:17 PM

Title: Weird Inconsistent Movement Issue
Post by: misterjuly on April 06, 2021, 02:32:17 PM
Hello,

I am having this weird, inconsistent movement issue. Every once in a great while, my character will move further than I tell him to. It's like I am holding down the button longer than I am. My character doesn't move forever when I do this, maybe just a few in game feet and I will emphasize this only happens once in a while (but still is a problem). I am using get axis action as well as a set velocity 2d. I also have a running system when you hold shift the character moves faster (using get key down as well as the previously mentioned actions). Any help is appreciated. Thanks!

John Bassi
Title: Re: Weird Inconsistent Movement Issue
Post by: misterjuly on April 07, 2021, 09:43:20 PM
Bump
Title: Re: Weird Inconsistent Movement Issue
Post by: Weak Interactive on April 08, 2021, 02:51:00 AM
Without knowing exactly how your FSM's are setup, it's hard to say what the issue is. The best thing would probably be to link your zipped project for someone to take a look at.

Until then, have a good one and good luck.

Title: Re: Weird Inconsistent Movement Issue
Post by: djaydino on April 08, 2021, 09:13:50 AM
Hi.
Its indeed hard to say if we can't see the setup.
you could make a short video showing the states.

also try playing while looking to the states to see what's happening
Title: Re: Weird Inconsistent Movement Issue
Post by: Alex Chouls on April 08, 2021, 11:40:29 AM
Does it happen in standalone builds as well as in the editor? There is overhead in the editor, and sometimes you can see glitches that don't happen in standalone builds.
Title: Re: Weird Inconsistent Movement Issue
Post by: misterjuly on April 12, 2021, 02:33:20 PM
I can upload the project, but I am concerned if I upload it, playmaker will be included and anyone from the internet can have access to it without buying it. How do I export it without including playmaker?
Title: Re: Weird Inconsistent Movement Issue
Post by: misterjuly on April 12, 2021, 02:36:45 PM
Also, here is the FSM:
Title: Re: Weird Inconsistent Movement Issue
Post by: djaydino on April 12, 2021, 03:00:10 PM
Hi.
In state 2 there is a 'Get key Down' action that has no event connected.
This might be the issue
You should remove that one.

Also on the events like on 'Get Key Down/Up you should not use 'FINISHED'
You should make a custom event for example 'Key Pressed' 'Key Released'

'FINISHED' is best to use only with actions that do not have events (as its a default used event)