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.
パックマンが一方通行で壁を通り抜けるのを止めることができますが、反対方向に進むと壁を通り抜けることができます。私が使用したコードは次のとおりです。
onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { _root.char._x -= 7; }
}
どちらの方向に移動する場合でも、壁を通過しないようにする必要があります。前もって感謝します