1 decade ago by Fooshi
Hello,
I have integrate the button plugin of Philip that i have found here https://gist.github.com/1395616
To display a button i works fine but the event pressed or pressedUp seems not be working for me.
I have loaded my entity in the init function of my game like this :
Thank you for some help
EDIT : I have resolved my problem
I have integrate the button plugin of Philip that i have found here https://gist.github.com/1395616
To display a button i works fine but the event pressed or pressedUp seems not be working for me.
I have loaded my entity in the init function of my game like this :
btn_valider = ig.game.spawnEntity(button,100,430, {
size : {x:138, y:36},
animSheet : new ig.AnimationSheet('media/btn-valider.png', 138, 36),
pressedUp : function(){
console.log('la');
}
});
Thank you for some help
EDIT : I have resolved my problem
