1 decade ago by Vertig0
Hi!
i have an entitiy whit the "_wmscalable" property and i wish to know if is possible put graphics to it.
Here is my code:
In a "normal" entity with the animsheet and "addanim" i can add the graphics, but this dont work in this one.
Thanks in advance!
i have an entitiy whit the "_wmscalable" property and i wish to know if is possible put graphics to it.
Here is my code:
ig.module( 'game.entities.magnetismo' ) .requires( 'impact.entity' ) .defines(function(){ EntityMagnetismo = ig.Entity.extend({ _wmDrawBox: true, _wmBoxColor: 'rgba(255, 0, 0, 0.5)', _wmScalable: true, side: '', gravityFactor: 0, polarity: 'neutral', potency: 500, type: ig.Entity.TYPE.B, checkAgainst: ig.Entity.TYPE.A, check: function(other){ ...
In a "normal" entity with the animsheet and "addanim" i can add the graphics, but this dont work in this one.
Thanks in advance!