How to make scrollable game that follows the main character if we use keys or scroll if we use the wheel with Phaser3?
It is my first time using Phaser3 and I am trying to create a game to display in a website. My plan was to make a vertical map that you can navigate either with the keys and scrolling. The thing is that I do not find any examples online, since if the camera follows the character, I do not manage to make the scroll work, and the other way around. Here is a snipet of my code in case it helps
Adding Sprite to a Layer causes it to be at top instead of with the layer
I am adding a sprite to a group, and I expected it to be with the group’s layer, instead it is brought to the top of the canvas. Any ideas?
How do I make 2 Immovable Objects Collide and Just Stop [Javascript Phaser]
I have searched online for many hours for an answer, but no one seemed to be doing movement like I was. I just started my Phaser journey, and got stuck pretty early. I want my game to have movement locked onto the player in the center, with everything else moving around it. When I tried to add a building, however, the player would be pushed out from the middle.
Find Which Object is in Collision In Phaser
I have multiple objects in my static group and need to know which one I am colliding with when my player hits one of the objects. My code looks like this: