Hi everyone,
I'm new to Playmaker, and I'm having a bit of trouble, so I hope that someone might be able to help out.
I'm trying to create a basic movement system for a 2D platformer. The character is a Sprite. I have the idle and walking animations working alright, but I'm having a lot of trouble trying to make the sprite flip whenever the player changes direction.
By using the Set Scale action with some events (as seen below), I've got my character flipping back and forth. Initially I was getting that dreaded 'exceeded maximum number of loops' error, so that's why there's a 'Do Nothing' state with a 'Next Frame Event' at the top of the FSM.
Anyway, so I've got the visual element working (the character does flip), but now it's causing troubles with my movement. Without the Set Scale action, he moves as smooth as butter. But with it on, he slows down considerably and gets quite choppy.
Below I have included two images showing how I've got the 'Flip Sprite' FSM set up. If anyone's wondering about my movement system, I've just got a simple combination of 'Get Axis' and 'Set Velocity 2D' actions.
If anyone could tell me why it would be making movement choppy, or how to fix the issue, it would be sincerely appreciated. Thanks in advance!