Check out the full tutorial playlist📋: th-cam.com/play/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP.html Download the Top Down Template🐸: gamecodelibrary.itch.io/top-down-2d-base-template Get all source code‼: www.patreon.com/c/GameCodeLibrary Enjoy!!
I am really grateful about finding your channel for the JRPG i am making since i don`t know a whole lot about coding and Jrpgs tutorials are extremely scarse. I hope my project goes well with the help of your tutorials and you have my wholeheartedly gratitude for these videos.
You’re welcome!!! This first tutorial series will be a base for any top down game - but originally was going to be just for a turn based rpg game 🙀! So it should work well for a base for your game 😇 Once the base is done I’m going to branch into the other genres using this template, so will get back to a turn based rpg at some point!! You’ll probably be ahead of me by then though 😉 good luck!
@@GameCodeLibrary Could you make a tutorial on simple particles bc I want it make that when my player in the platformer jumps it makes some particles and when he walks some dirt at his feet. Also is it possible to play Sound Effects continuous for example steps when walking?
I really hope that the save system will be implemented via JSON. As there is some confusion about how to work with it correctly. Although I already have experience of writing my own saving system - but some things in it did not work as I expected.
Yes I am going to do saving with json! I’ll keep it as a simple json file to begin with so it’s easy to see how it’s saving, then we can look into serialising later on :-) The method I’ll show is the one I use for all my games so it should hopefully work for any for you too! I’ll try get the saving vid out next week 🙏
Hey! You can use something like this and add it to a script on your UI object: public class UIElement : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler { public void OnPointerEnter(PointerEventData eventData) { Debug.Log("Mouse enter"); } public void OnPointerExit(PointerEventData eventData) { Debug.Log("Mouse exit"); } } When the pointer enters, change your tab to what you’d like the hover effect to be. When it exits, set the tab back to its default settings. I haven’t tested this code yet as I’m not at my pc! But I’ll try it when I get home and if it works I’ll add it to my tabs too :-) think I’d make the tab highlight in yellow when hovered 🧐
@@GameCodeLibrary Anyway, if you have time, please add it to the video. I'm probably stupid, but the script doesn't work at all, because it resets the "active color tab" even if I used IPointerDownHandler I somehow did it via Event Trigger, but it was a pain and I have no idea how it is possible that it works at all
@@whats_with_eris Sure I'll try it out and see what I can do! I'll reply to your comment if I can get something easy working as well and send you the code :-)
finally, here is my solution.... I'm definitely stupid xD 1. create a new script 2. insert it into each Tab Hover color cannot be the same as Active color in this solution - or change it by just one point to make it look the same example: activeColor = new Color(0.97f, x, x, x); hoverColor = new Color(0.96f, x, x, x); CODE: public class UIHover : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler { public Image hoverImages; Color hoverColor = new Color(0.96f, 0.62f, 0, 1); Color notActiveTabColor = Color.white; public void OnPointerEnter(PointerEventData eventData) { if (hoverImages.color == notActiveTabColor) { hoverImages.color = hoverColor; } } public void OnPointerExit(PointerEventData eventData) { if (hoverImages.color == hoverColor) { hoverImages.color = notActiveTabColor; } } }
Check out the full tutorial playlist📋: th-cam.com/play/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP.html
Download the Top Down Template🐸: gamecodelibrary.itch.io/top-down-2d-base-template
Get all source code‼: www.patreon.com/c/GameCodeLibrary
Enjoy!!
I am really grateful about finding your channel for the JRPG i am making since i don`t know a whole lot about coding and Jrpgs tutorials are extremely scarse. I hope my project goes well with the help of your tutorials and you have my wholeheartedly gratitude for these videos.
You’re welcome!!! This first tutorial series will be a base for any top down game - but originally was going to be just for a turn based rpg game 🙀! So it should work well for a base for your game 😇
Once the base is done I’m going to branch into the other genres using this template, so will get back to a turn based rpg at some point!! You’ll probably be ahead of me by then though 😉 good luck!
underrated channel
🙏❣
Awesome Tutorial! Thanx.
You’re welcome I’m glad you enjoyed :-)
Keep up the fantastic work! Greatly appreciate the videos!
Thank you for your support, I'm happy you like them! :-)
A good and underrated channel! I give likes to every video, now I will also write comments for promotion.
Thank you for your support!! Means a lot to me, I’m glad you enjoy the videos too.
Thank you so much for this video GCL, it was very great, interesting and useful! Hope you have a very nice day, keep it up you're a pro! :D
Thanks a bunch! Your support means a lot! :-)
i was gonna say " if this updated" 😂 u just posted today. Thanks, i have a project to develop and menus is something I've been delaying to learn👍🏻
Good timing then! 😝 I make everything as clean and simple as possible, so hopefully this makes learning menus easy! :-)
Best Content ever im learning unity since today and i managed to make a scrolling platformer rn and i will do ur tutorial to animate my player now
So glad my videos are helping! Hope you can make anything you can ever dream of 🙏
@@GameCodeLibrary Could you make a tutorial on simple particles bc I want it make that when my player in the platformer jumps it makes some particles and when he walks some dirt at his feet. Also is it possible to play Sound Effects continuous for example steps when walking?
@@sunrisedesigns I was about to reply and link my particles video but I saw you've found it!! :-)
@@GameCodeLibrary Yeah I managed to do it im now on my enemys and animations. Do i have to credit ur work in any way?
@@sunrisedesigns Nope you don't have to credit anything if you don't want to! I'm just glad to help!
I really hope that the save system will be implemented via JSON. As there is some confusion about how to work with it correctly. Although I already have experience of writing my own saving system - but some things in it did not work as I expected.
Yes I am going to do saving with json! I’ll keep it as a simple json file to begin with so it’s easy to see how it’s saving, then we can look into serialising later on :-)
The method I’ll show is the one I use for all my games so it should hopefully work for any for you too! I’ll try get the saving vid out next week 🙏
Hi, is there any possibility to add Hover on Tab ?
Hey!
You can use something like this and add it to a script on your UI object:
public class UIElement : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
public void OnPointerEnter(PointerEventData eventData)
{
Debug.Log("Mouse enter");
}
public void OnPointerExit(PointerEventData eventData)
{
Debug.Log("Mouse exit");
}
}
When the pointer enters, change your tab to what you’d like the hover effect to be. When it exits, set the tab back to its default settings.
I haven’t tested this code yet as I’m not at my pc! But I’ll try it when I get home and if it works I’ll add it to my tabs too :-) think I’d make the tab highlight in yellow when hovered 🧐
@@GameCodeLibrary
I got it!
Thank you and sorry for bothering.
I did it that way before but I had it wrongly set in "unity components"
@@whats_with_eris Cool nice!! And it's no bother - we're all collaborating here :-)
@@GameCodeLibrary
Anyway, if you have time, please add it to the video.
I'm probably stupid, but the script doesn't work at all, because it resets the "active color tab" even if I used IPointerDownHandler
I somehow did it via Event Trigger, but it was a pain and I have no idea how it is possible that it works at all
@@whats_with_eris Sure I'll try it out and see what I can do! I'll reply to your comment if I can get something easy working as well and send you the code :-)
finally, here is my solution.... I'm definitely stupid xD
1. create a new script
2. insert it into each Tab
Hover color cannot be the same as Active color in this solution - or change it by just one point to make it look the same
example:
activeColor = new Color(0.97f, x, x, x);
hoverColor = new Color(0.96f, x, x, x);
CODE:
public class UIHover : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
public Image hoverImages;
Color hoverColor = new Color(0.96f, 0.62f, 0, 1);
Color notActiveTabColor = Color.white;
public void OnPointerEnter(PointerEventData eventData)
{
if (hoverImages.color == notActiveTabColor)
{
hoverImages.color = hoverColor;
}
}
public void OnPointerExit(PointerEventData eventData)
{
if (hoverImages.color == hoverColor)
{
hoverImages.color = notActiveTabColor;
}
}
}
Nice!!! So cool well done for figuring it out 🤩🙏