Using Collisions in Phaser 3 TileMaps

  Рет қаралды 7,254

WClarkson

WClarkson

3 жыл бұрын

This video will show you how to set up collisions in your Tilemap and limiting the collisions to certain tiles. For example, you might want your player to not go through wall tiles, but not collide with floor tiles.
You can download the source files here

Пікірлер: 12
@KriztianEinsamkeit
@KriztianEinsamkeit 3 жыл бұрын
Thank you. So helpful. One question, im using isometric tiled generated with tiled and doesnt work fine, only colide when the player move from left to right and from up to down, but doesnt colide when it moves from right to left and down to up. With orthogonal tileset works fine. Any idea? Thank you.
@WClarkson
@WClarkson 3 жыл бұрын
Sorry. I'm not sure. Is there any error message?
@Osh3n
@Osh3n 2 жыл бұрын
Hey your videos have been helpful in solving some issues with a game im working on but i'm having an issue that i can't seem to find the solution to and was hoping you might be able to make a video on it. The issue i'm encountering is the one you mentioned in the video where it was colliding with your the block instead of just the outline of the cactus. For my game Im working on a sidescroller and I'm using an incline and i want the player to be able to move up and down the incline without running into the invisible blocks set by Tiled's default colliders. I've already edited the tilesets i used in the Collider editor but the changes arent being shown in the game even after exporting the new map to the Phaser 3 project. Any ideas? (Enjoying your content keep it up!) Sorry for the long comment! Thanks!
@WClarkson
@WClarkson Жыл бұрын
Sorry for the late reply and I'm not sure if this helps or not, but slopes don't work well with the arcade physics engine which is what I'm using for these videos. You might need to look at an alternative.
@saurabrakshit405
@saurabrakshit405 Жыл бұрын
Nice vdo ! suppose we want to console.log("passed between the cactus") when the smiley character pass between the cactus , How can we do that ? I hope you got my query !
@WClarkson
@WClarkson Жыл бұрын
Hi. You can add a sprite with a collision with the alpha set really low to make it invisible and place it between the cactuses. Does that make sense?
@Evan842Complex
@Evan842Complex 3 жыл бұрын
Hi. May I ask if you can share the code with us? Thx
@WClarkson
@WClarkson 3 жыл бұрын
All the code is on Phasergames.com
@gregowski_pl
@gregowski_pl 2 жыл бұрын
no new tuts for so long, why?
@WClarkson
@WClarkson 2 жыл бұрын
Any requests?
@gregowski_pl
@gregowski_pl 2 жыл бұрын
​@@WClarkson not sure at the moment, but in-depth Phaser physics course would be wonderful :)
@sicoles11
@sicoles11 Жыл бұрын
How about some multiplayer tutorials?
Phaser 3 Make the camera follow the player
7:26
WClarkson
Рет қаралды 10 М.
Beautiful gymnastics 😍☺️
00:15
Lexa_Merin
Рет қаралды 15 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 32 МЛН
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 74 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 73 МЛН
Easily create levels/maps for Love2D games (with Tiled)
7:56
Challacade
Рет қаралды 61 М.
Making Animations with JSON in Phaser 3 Part 1
7:10
WClarkson
Рет қаралды 10 М.
Switching to Godot - Why I'm quitting PhaserJS
8:34
Yugen
Рет қаралды 9 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 696 М.
Phaser April 2023 Games Showcase
12:20
Richard Davey
Рет қаралды 30 М.
Using Image Recognition to DESTROY Fruit Ninja
10:08
CodeNoodles
Рет қаралды 602 М.
Game Engine 5 (2021): Phaser 3 Physics and Collisions
26:56
Creative Computation
Рет қаралды 3,4 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 538 М.
Phaser Tutorial | Make Your First 2D JavaScript Game
22:48
lowpolyprincess
Рет қаралды 37 М.
Little girl's dream of a giant teddy bear is about to come true #shorts
0:32
МУЖЧИНА И ТОПОР
0:22
В ТРЕНДЕ
Рет қаралды 8 МЛН
🤣ПОКУПАЕТ МАШИНУ У ДЕВУШКИ
0:35
MEXANIK_CHANNEL
Рет қаралды 6 МЛН
ГОНКИ НА САМОКАТАХ
0:19
ОЛЕГ КИНЛИ
Рет қаралды 764 М.
Little girl's dream of a giant teddy bear is about to come true #shorts
0:32