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 cold_geek

Hi,

I'm having a little trouble with IOSImpact and a scrolling background.
When I log stuff out to the console, I find that the character & camera are actually moving around, but the background never changes/moves. It's as if it's frozen to the viewport.

Collision tiles do indeed seem to be where they're supposed to be in relation to where the character starts, and everything behaves as it should, but it's a little hard to tell where you are because the background doesn't scroll. Again, this is only on IOSImpact, scrolling works fine in the browser.

Only thing interesting in the console is that I do get low memory level 1 warnings when the game is running.

Any ideas on what would freeze the background?

1 decade ago by cold_geek

Ok, fixed it. I'm just calling setScreenPos explicitly in the camera code now.
I actually now have no idea why it was working in the browser, but it works everywhere now, so I'm happy.

BTW, impressed with IOSImpact performance.

1 decade ago by dominic

The Impact version that is bundled with iOSImpact is slightly outdated and needs this call to setScreenPos() explicitly; the newest Impact version (1.18a) does this automatically in the Game&039;s #draw() for you.

You could try to update all the lib/impact/ files from iOSImpact with the newest ones - it should work I believe :)

1 decade ago by cold_geek

Hi Dominic,

Thanks! It occurred to me just this morning (after finally getting some sleep) that it was a difference in the engine. That's also why there's no implementation of sortEntitiesDeferred() :)
Page 1 of 1
« first « previous next › last »