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 Derek

Hey guys,

I just discovered Impact last night and immediately purchased it. So far I am loving it!

I have run into a weird problem I can't figure out, though. I was wondering if somebody could help shed some light on it.

When I run [code]this.vel.x = 10;[/code] on an entity, the layer of my map that displays above the entity (Tops of trees, etc) flickers in and out of visibility.

See this video: http://youtu.be/wzPlZdeitfk

Does anybody know what could be causing this?

Thanks,
Derek

1 decade ago by Derek

For future reference:

I found out the problem was that I had accidentally made one of my animation frames extend 1 pixel beyond the actual image size. I don't know why this effected the map layers, but fixing the frame fixed everything.

Thanks

1 decade ago by dominic

Same problem as in this thread. To quote myself:
The reason that everything disappears when this happens is, that error is not caught (by a try...catch) and thus the whole function (system.run) just aborts, leaving everything that hasn't been drawn already undrawn for this frame.

I should probably implement a safeguard for these kind of errors. You easily stumble over them, yet the cause is hard to find if you don't know where to look :/
Page 1 of 1
« first « previous next › last »