Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by gnesher

Hi,

I've got a really odd bug with Safari and FF - the player entity can only move a few pixels left/right and gets stuck (works fine in Chrome).

I'm basically using the code from the examples:
if( ig.input.state('left') ) {
this.vel.x = -this.speed;
}else if( ig.input.state('right') ) {
this.vel.x = this.speed;
}else{
this.vel.x = 0;
}

I've consoled log into left/right states - they are being called (repeatedly) and the vel is changing. Can't figure out what's the problem.

Changing the vel to position (manually moving the entity) does work - but that's not much of a solution (and will fail for things like jumping).

Any ideas?

1 decade ago by gnesher

Quick update - it seem the collision maps is slightly different between browsers, which makes absolutely no sense to me.

1 decade ago by gnesher

Problem resolved - but I do believe this is a bug with the level editor.

From what I understand - if I want to delete a collision block I simply select an "empty" box from the list of available tiles (there seem to be a few) - and while they seem deleted in the level editor (and are ignored in Chrome) the level editor actually save a block there (id of around 48-51) which acts as a regular collision tile on some browsers (FF, Safari etc.).
Page 1 of 1
« first « previous next › last »