Search the Community
Showing results for tags 'warp'.
-
Just realized that the text wrap function will not take effect if there are no spaces in the text. while this works game.stage.backgroundColor = '#0072bc'; var style = { font: 'bold 20pt Arial', fill: 'white', align: 'left', wordWrap: true, wordWrapWidth: 150 }; var text = game.add.text(game.world.centerX, game.world.centerY, "phaser with a sprinkle of pixi dust", style); this does not game.stage.backgroundColor = '#0072bc'; var style = { font: 'bold 20pt Arial', fill: 'white', align: 'left', wordWrap: true, wordWrapWidth: 150 }; var text = game.add.text(game.world.centerX, game.world.centerY, "phaserwithasprinkleofpixidust", style); Is this an issue or is this how it is supposed to be?
-
Hello all, currently i'm using a trick to make my game look endless: while i keep moving the camera and the player, i test if the end of the world is near; if yes, my camera will stop to slide soon. Then, i simply change the x coordinate value to 0. Doing the correct math and the correct scenario, the jump will look quite good. But it's not enough. For example, if some item where present in the last portion of the world, it certainly won't be at the begining. It leads to make sure that certain items will use the very same spritre, and so on. Is there any other way to get the endless effect? any effective way to create the illusion? Any idea is welcome.