You are browsing as a guest. Sign up (or log in) to start making projects!

3h 42m 22s logged

Captain’s Room + Ship

Hello everyone I have done 7 hours yesterday and devloged 3 of them with the crabfight and the others hours now. I have been very productive and had a lot of progres on my game pirate cats. I have finished major parts of scenes.

Captains Room

First I would like to talk about the Captains Room, this is the first part of the video and you see a lot of things start to move when I put my mouse over them, that is the hover. You can do it with a button 2d with mouse entered and exited, in the start I had it as mouse entered meant animation played and mouse exited mean animation stopped on a button. and if you watched the video, you saw that my camera moved when the mouse was on the side of the view. To do this I used a camera, and put two button 2d’s on the edge, and I had mouse exited for the left side was left camera move = true and I set it false when it was exited, I did the same with the right side button and had a variable called right camera move = false. You might wonder how just having variables would move the camera, it doesn’t. In the process code (which runs 60 frames per second) there is this var delta, which means run at 60 frames per second. So for the camera to move left I did $Camera2D.global_position : Vector2 = -1 * Speed * Delta I could set speed to whatever I wanted such as 300 and then when it was for the right side I just switched -1 to 1. This was all working I had no bugs, but in the scene tree the camera is at the bottom. So the buttons are children of the camera, and there are other buttons above it such as the ones I use to hover. So when I was moving the camera my cursor landed on one of the other items that hover, and the camera stopped moving. It was very annoying and I didn’t know how to fix it. It turns out you can use area 2D’s they have a mouse entered, mouse exited, and a click function. The only difference is you can not see the area 2d’s like if you are putting an icon or text or style on the button like a panel you wont see it. But luckily for me I but the button over the assets. So this was a big problem I solved.

Back of The Ship

I have started working, just the back part. That is the second part of the video, when it goes to that new scene after pressing the arrow. I have the fisher and the cook there. So as you see the arrows are what guides the players, and there is a camera and some items to hover at the back of the ship and I am using area 2d’s.

Game Information

If you want to see my crab mini game in Pirate Cats, or previous history you can see it on Vishy Labs on Instagramhttps://www.youtube.com/shorts/dKRGESaI7ss I will continue working on the map part, where the user has to put the map together after getting all the pieces. See you guys later!

0
4

Comments 0

No comments yet. Be the first!