obiot/melonJS — Issue #43: MouseClick problem
Author: norb42
Created: 2012-02-11 13:38:57+00:00
State: open

Hello,

I don't understand but there is an problem in the new way of managing the click :

if (obj.isClickable && obj.collisionBox.containsPoint(v)) {
if (obj.clicked()){

This don't fire the event like before but if i place the following code it's working normally:

if (obj.isClickable && (x >= obj.left) && (x <= obj.right) &&
(y >= obj.top) && (y <= obj.bottom))

test sample : http://norb.zxq.net/melonJS/sample4/

Version used : git 9.3