1 decade ago by dahl
I'll post my skull entity in a sec, but when i place it in the welt and then run it, it falls right through the floor. I'm sorry if i've repeated a previous forum post, but i did not see anything about this particular issue. and Yes, i've placed solid tiles, from the media dir where the floor should be. i'm just running a simple test to see if the entity looked right.
thanks for the help!
ig.module(
'game.entities.skull'
)
.requires(
'impact.entity'
)
.defines(function(){
EntitySkull = ig.Entity.extend({
size: {x:56, y:56},
collides: ig.Entity.COLLIDES.FIXED,
animSheet: new ig.AnimationSheet( 'media/skull.png', 56, 56 ),
init: function( x, y, settings ) {
this.parent( x, y, settings );
this.addAnim( 'idle', 0.1, [0,1,2,3,4,5,6,7,8,1] );
this.vel.x = 0;
this.vel.y = 25;
}
});
});
thanks for the help!
