- Joined
- Apr 6, 2016
- Messages
- 698
- Reaction score
- 3,450
- First Language
- English
- Primarily Uses
- N/A
As this question is about PIXI, this is obviously concerning RPG Maker MV.
So I'm having a difficult time getting shapes I've created with PIXI to respond to Events such as mousedown.
Here's an example of what I've tried/know
I've researched a lot on other sites, and on here. I found a thread started by Tsukihime that was eventually answered by Hudell, but I didn't quite understand what was happening and don't think it applies to my question. Any help would be much appreciated.
So I'm having a difficult time getting shapes I've created with PIXI to respond to Events such as mousedown.
Here's an example of what I've tried/know
Code:
var exShape = new PIXI.Graphics()
exShape.lineStyle(1, 0xFFFFFF, 1);
exShape.beginFill(0xFFFFFF);
exShape.drawCircle(0, 0, 100);
exShape.graphicsData[0].shape.hitArea = new PIXI.Circle(0, 0, (exShape.graphicsData[0].shape.width / 2));
exShape.interactive = true;
exShape.buttonMode = true;
exShape.on('mousedown', exFunc);
//Define exFunc
var exFunc = function(ev) {
console.log("It worked");
}
I've researched a lot on other sites, and on here. I found a thread started by Tsukihime that was eventually answered by Hudell, but I didn't quite understand what was happening and don't think it applies to my question. Any help would be much appreciated.
Last edited:

