Search the Community
Showing results for tags 'how-to'.
-
How would I create multiple levels. For example, after I hit a checkpoint, the game will load a new level? This is the code I currently have, it just loads a few blocks(level 1). boxes = game.add.group(); boxes.enableBody = true; var blocks = boxes.create(300, game.world.height - 125, 'block2'); blocks.body.immovable = true; blocks = boxes.create(400, game.world.height - 125, 'block2'); blocks.body.immovable = true; blocks = boxes.create(400, game.world.height - 150, 'block2'); blocks.body.immovable = true; blocks = boxes.create(625, game.world.height - 125, 'block2'); blocks.body.immovable = true; blocks = boxes.create(650, game.world.height - 150, 'block2'); blocks.body.immovable = true; blocks = boxes.create(650, game.world.height - 125, 'block2'); blocks.body.immovable = true;
- 10 replies
-
- levels
- javascript
-
(and 1 more)
Tagged with:
-
Does anyone know anyways to implement a leaderboard?
- 1 reply
-
- leaderboard
- how-to
-
(and 3 more)
Tagged with:
-
First of all what i am trying to do: Imagine a fiery ball that goes near thing that make them appear lighter... i am trying to make a glowing ball that blends with certain objects. So imagine a scene in which there is a background, some other stuff, and rocks. A glowing ball follows mouse with opacity halfed. now this ball of light needs to blend in addition to being opaque with rocks and not with background and other stuff. My approach: not saying it's the best but i intended to make two glow balls one that was opaque and one that would blend with objects and would remain masked out other wise. It's mask would be all object that it need to appear on. But there is not a way i can find to do it. I would like to have a group of sprites to which i can masks this so this firy ball only appears when it's over them. doing this gives error fireball.mask=sprite_object.