Hello, I'm new to godot engine and I want to make a 3D card Game but the Card is 2D and the board is 3D, how can i show the 2D card in the bottom of 3D camera (it's like the usual card game, the card is showing in the bottom of the camera)? Or should I make a 3D card for a 3D camera ? Thanks
Descriptive You could simply have a CanvasLayer over your 3D scene (like a HUD UI) and show your 2D card images as a TextureRect or Sprite2D.
Octet
Thank you and sorry for the late reply. For the six cards on the bottom of the canvas, I think it will need the coding to do it right? (like the starter card). Do you have some advice for me, where should i start it ? I watched some Youtube tutorials for card. He's really good but i just understand a little bit.
Descriptive If I had to build this then my first spontaneous thought would be:
- Add a CanvasLayer for the card UI.
- Add a CenterContainer that keeps your cards centered. Set its anchor preset to "bottom wide".
- Add an HBoxContainer for the cards.
- And then add your cards in some way from your code.
If all this sounds too complicated then that's totally fine. In that case just do a step back and make something simpler first. For example play around a bit with the Godot UI system. Break down the things that you don't understand and make small test projects just about these specific issues.
Descriptive I'm also working on a 3D card game. For me, the best solution was to also create the cards as a 3D object. This solves several problems such as shadow projection, perspective, and card flipping animations.
Octet
Thank you so much, you even make an example for me. I understand this one because I really try to make and do all tutorials just for my experience in Godot. I really appreciate it. I have done making the simple game ( tic tac toe game) but based on YouTube tutorials
Chervonets
Thanks for your advice, it's okay that I see your game ? (I am really weak at coding something. I tried to learn it but somehow I only got 40-50% of the knowledge) or do you have discord that i can add? ( maybe i can learn something from you)
Descriptive Of course, I'm happy to share 😃
Now I'm at my day job, but later I can publish here what I've already done and the problems I've already solved (several with the help of this community 😉
my discord is fadasentava
Chervonets
alright i just send the friend request on discord . my discord name is Imu
© 2022 - 2024 — McMap. All rights reserved.