-
Content Count
2161 -
Joined
-
Last visited
-
Days Won
25
Everything posted by samme
-
They could be set that way but AFAIK there is no easy way to use them for compiling Phaser.
-
https://photonstorm.github.io/phaser-ce/Phaser.Tilemap.html#getTileAbove
-
Make sure the source rectangle is fully within the source image.
-
this.game.physics.arcade.overlap(this.player, this.items, collect, null, this);
-
onUpdateScope: …
-
// update() var cam = this.cameras.main; cam.setZoom(Phaser.Math.Clamp(cam.zoom, 0.2, 5));
-
It is sad but it was removed because it wasn't working in all cases, and it will be replaced by a feature in the upcoming ScaleManager. I think it was intended as an experimental feature, it just wasn't labelled that way. You can emulate it pretty easily: https://github.com/photonstorm/phaser/issues/4048#issuecomment-432160600
-
Which lab example? Probably you can stop or sleep the first scene.
-
phaser/issues/4048
-
You have to avoid the Phaser 2 examples, they won't work and will confuse you. https://medium.com/@michaelwesthadley/modular-game-worlds-in-phaser-3-tilemaps-1-958fc7e6bbd6 etc. will be better help. var monsters = this.physics.add.group(); monsters.addMultiple(map.createFromObjects( 'Monsters', 'blob', { key: 'monster' }, )); monsters.getChildren().forEach(function (enemy) { // You need to use the `body` methods because these are Sprites (not ArcadeSprites) enemy.body.setBounceX(1); enemy.body.setCollideWorldBounds(true); enemy.body.velocity.x = 40; }, this);
-
https://samme.github.io/phaser-examples-mirror/input/drag update multiple.html
-
Did you use physics.add.collide then?
-
(undefined).sprite(vaso.body.x, vaso.body.y, 'vidaExtra')
-
PathFollower is based on Sprite, so yes.
-
http://labs.phaser.io/view.html?src=src\scenes\ui scene.js
-
You can use the startFrame argument of play() or (I think) the delay argument of anims.delayedPlay().
-
http://labs.phaser.io/index.html?dir=snapshot/
-
http://labs.phaser.io/view.html?src=src/game objects\tilemap\static\create from objects.js
-
All of the Phaser Geom classes have contains tests.
-
It does have examples. https://photonstorm.github.io/phaser3-docs/Phaser.Input.Keyboard.KeyboardPlugin.html#addKeys__anchor
-
Wrong thread, sorry.
- 5 replies
-
- javascript
- tiled
-
(and 2 more)
Tagged with:
-
{ scene: { preload: preload, create: create, update: update, extend: { collideaa: collideaa } } } this.collideaa();