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 Stefan

Hey guys,
happily hacking away, until....

I cannot get the screen to move. I have tried updating the screen.x and .y parameters inside the game as the player update methods - to no effect. I have tried the camera module as well. I have saw the approach of using the setScreePos() on the background maps, but this seemed to be the wrong approach. Any hints what I could be doing wrong?

Regards

Stefan

1 decade ago by dominic

Setting ig.game.screen.x/y should work just fine. Maybe you&039;re re-setting it each frame or your code never reaches the set instruction. Or you overwrote the Game's #draw() method without calling this.parent()?

Show us some code :)

Btw.: you shouldn&039;t need to care about the BackgroundMap's #setScreenPos() method. It&039;s internally called for each background map in the Game's #draw() method.

1 decade ago by Stefan

Such an idiot - I am. The the super call, I mean this.parent is missing. 15 years of JEE does not automatically make me a good JS developer :-(

Also danke nochmal aus Karlsruhe!
Page 1 of 1
« first « previous next › last »