Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
左、右、上、下を示す4つのスプライトがあり、グリッドパスの動きを使用して動きを作ったので、このようにしたい
プレイヤー オブジェクトが左に移動する場合は、spr_left を変更します
グリッドパスで作成するには?
プレーヤーの最後の方向を確認する必要があります。
if (x < xprevious) { sprite_index = spr_right; } if (x > xprevious) { sprite_index = spr_left; } if (y < yprevious) { sprite_index = spr_up; } if (y > yprevious) { sprite_index = spr_down; }