Search the Community
Showing results for tags 'straight'.
-
preload: function() { this.game.load.image('road', 'assets/images/road.png'); }, create: function() { this.game.world.setBounds(0, 0, 1136, 640); this.road = this.game.add.tileSprite(this.game.world.centerX, this.game.world.centerY, this.game.width, this.game.height, 'tileRoad'); this.road.anchor.setTo(0.5); }, update: function() { this.road.tilePosition.y +=1; } this code is for tilling the background from top to bottom. However, I would like to tilling the background straight to the camera view. what technique I need to use for achieving it? here is the example of the tilling background I have found in this game http://www.nickjr.com/paw-patrol/games/paw-pups-save-the-day/. Can anyone give me a clue to do so? Thanks!
- 4 replies
-
- moving background
- straight
-
(and 1 more)
Tagged with:
-
Hi, the problem is that body is not move straight if drag property set. Check asteroids example http://examples.phaser.io/_site/view_full.html?d=arcade%20physics&f=asteroids+movement.js&t=asteroids%20movement There are some roaming at the end of ship moving. How it can be fixed?
- 4 replies
-
- moving
- arcade physics
-
(and 2 more)
Tagged with: