バグ:子オブジェクトが汎用でない.zip (126.7 KB)
AGMバージョン:1.0.18
説明:
このプロジェクトは、p1、p2、p1およびp2の子オブジェクト、ロックホルダーの5つのオブジェクトを実行します。
p1とp2はそれぞれ自分の最大HPを常に変化させます。
子オブジェクトは親オブジェクトの最大HPに基づいて色を絶えず変化させます。
ロックホルダーはp1とp2をロックし、ロックされたオブジェクトのx座標を常に変化させ、ロックされたオブジェクトが左右に揺れることを実現します。
再現手順:
- 添付ファイルをダウンロードし、プロジェクトを開いた後、F5キーを押して実行します;
- 操作は不要で、子オブジェクトのうちの一つが常に色を変えていないことが確認でき、これはおそらくバグです;
- p1とp2は明らかにロックされていますが、p1だけが揺れているため、これもおそらくバグです。
子オブジェクトが親オブジェクトの変数を読み書きする場合でも、ロックホルダーがロックされたオブジェクトの変数に影響を与える場合でも、指定された1つのオブジェクトのみに影響を及ぼすことができます。
このため、ゲーム開発の中で「HPメーターの表示」を担う子オブジェクトは、すべてのキャラクターに適用できず、「すべてのロックされたオブジェクトのHPを減少させる」といった操作が難しくなります。
AGM version: 1.0.18
Description:
This project runs 5 objects, which are sub-objects and lockers of p1, p2, p1, and p2.
P1 and P2 themselves constantly change their Max HP.
The child object constantly changes color based on the parent’s max hp.
The locker will lock p1 and p2, and constantly change the x coordinates of the locked object to make the locked object shake back and forth.
Steps to reproduce:
- Download the attachment, open the project, and press F5 to run;
- No operation is required, you can see that one of the sub-objects is not constantly changing color, which is suspected to be a bug.
- P1 and P2 are obviously locked, but only P1 is shaking, which is suspected to be a BUG.