0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[Godot 4.2] アニメーションの向きを反転させる(5秒で)

Last updated at Posted at 2023-12-16

アニメーションで動かす対象ノードの親の Scale-1 にします。

サンプル

まず下記画像の通りのシーン構成を作ります。
その後、画像中の Sprite2D を左右に往復させるアニメーションを作ったとします。

image.png

Sprite2D の親である Node2DScale.x-1 にします。

image.png

これで同じアニメーションを使いつつ、アニメーションの向きを反転させることができます。
ただし、 Sprite2D も反転しているので、適宜 flip_h で反転させてください。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?