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.
私は、背景用に1つのレイヤー、プレイヤーのキャラクター用に1つのレイヤー、および他のレイヤーをすべて一緒に同じキネティックステージを持つkineticjsゲームで作業しています。
次に、複数のイベントを追加できる1つのレイヤーの形状が必要な状況に遭遇しましたが、マウスイベントはステージで機能していますが、特定の形状で呼び出されていません.layer.on('mousedown'を試しました,関数(),false); 動いていない
shape.on('mousedown', function().....); を試してください。アニの言う通り