我希望能添加转身动画的功能 I hope this function to be added.

我在制作横版平台跳跃游戏时,发现添加角色的转身动画很困难。因为在主角静止站立的时候,我不知道如何读取角色的面朝方向,从而判定输入的方向键是否与面朝方向一致,并以此为触发条件添加转身动作。目前我可以通过项目开关或者手动翻转所有的动作动画来实现这个效果,但这样很繁琐。我希望官方能够添加一个检测输入的方向键是否与面朝方向一致的变量目标,这样就可以很快的做出转身动画了。

When developing a side-scrolling platformer game, I’m struggling to implement character turning animations. While the character is standing still, I can’t determine their facing direction to check if the input direction key matches it, which would serve as a trigger for turning animations. Currently, I have to achieve this by toggling project switches or manually flipping all animation clips, which is cumbersome. I hope the official team could add a variable that detects whether the input direction key aligns with the character’s facing direction—this would greatly simplify creating turning animations.

2 Likes

I know there is discussion about making ‘facing direction’ more accessible with checks and behavior. Hopefully we can have more info to share soon.

2 Likes

The same thing happens if you want to do a jump like in Ghouls and Ghosts. If you enable the option to not be able to change the trajectory of the jump or the fall, you can’t flip in the air. It’s as if the controls are frozen, and the character can’t turn back, something you could do in PGM. To do this, you have to create other actions, and it’s very cumbersome and complicated to make it work well.

如果你想像在《食尸鬼与幽灵》中那样跳跃,也会发生同样的情况。如果你启用了无​​法改变跳跃或坠落轨迹的选项,你就无法在空中翻滚。就好像操控被冻结了,角色无法转身,而这在PGM中是可以做到的。要做到这一点,你必须创建其他动作,而要让它运行良好,过程非常繁琐复杂。

1 Like