How to make water in a platformer

Using Tiled and Phaser, how do you make water in a platformer? I’m talking complete code example here guys! When I tried it earlier it didn’t work right.

Preferably using Tilemaps and Typescript. How do you even do it?

For complete code you’re going to have to find a tutorial. :slight_smile:

Get tile at player’s world position, check tile index, decrease player gravity and increase drag.

I actually figured it out. It’s too simple. I don’t know why I didn’t figure this out earlier.

1 Like

Feel free to share it back for others stumbling across :slightly_smiling_face: