Cat Cooking
Hello everyone, it might be a day or two since I have devloged, since I finished the fishing game mechanics, I wanted to take a short break and now I am back and starting the cooking minigame for the cook cat whose name is BISCUITS Thats right everybody, lets give it up for our cook cat buiscuits, and for the fisher cat, I forgot to put names back then, so his name is now Minnow If you guys have any suggestions for names I will take it in for my game! So without further to do, lets get into Pirate Cats, Cooking! (And if you wanted to see yesterdays progress you can view it on https://www.youtube.com/shorts/XgLbwD1cwBg)
Logic
If you saw the video (I put the link above) I made it yesterday, which is when I made the logic. So for each item, like the cakes shown in yesterday’s video, or the plates, sand castles, and toppings shown in today’s video. They all have a base node of a Sprite. But you might be thinking "How can a sprite 2D be draggable?" Well to make this possible, we added a button and code, so the button takes up the whole sprite space (where ever you want the user to be able to click and let it drag the item). So you add a script to your base layer, keep in mind you can do this to anything by just adding a button and script to it. In my script I had an offset, the global position and the global mouse position. I made the offset 0,0, which is where the item or sprite in my case starts off (Im just going to start referring the item using sprite from now on). Then on the button, you don’t do a button pressed signal, you do a button down and button up signal (this is to imitate the button being held down and dragged). Then you create another variable which is dragging and if you want you can have can_drag. When button is down dragging = true and when it is up dragging = false. Then in the process you subtract the offset from the global position of the mouse and the global position. And for the items to make them visible on the plate I had a plate that had all the items already there, and a panel. Because an area 2d does not react with a panel, every draggable item had to have a panel, and in their process it had when their panel interacted with the other panel, it will check if they already have it, can they have it, and it will do it, this will make the items on the plate appear and the off plate draggable’s disapear.
Appearence
As I have already told you guys, we are using figma. It makes the art look way better than my pixel art for other games. I guess it is just your opinion/the person. Anyways I think it all looks way better. But one thing that really weighed me down is that im not getting much support on youtube and instagram for Vishy Labs for progress on my game, and I was even accused of having my game as a copy. So I am persevering and making this game better than any game out there. If you want to support me I am Vishy Labs on youtube and instagram. Stay tunned for more progress!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.