Card 2D on the 3D camera
Asked Answered
D

8

0

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 answered 7/11, 2023 at 7:45 Comment(0)
O
0

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 answered 7/11, 2023 at 13:44 Comment(0)
D
0

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 answered 13/11, 2023 at 7:7 Comment(0)
O
1

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.

Octet answered 13/11, 2023 at 10:57 Comment(0)
C
0

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.

Chervonets answered 13/11, 2023 at 12:4 Comment(0)
D
0

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

Descriptive answered 13/11, 2023 at 13:22 Comment(0)
D
0

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 answered 13/11, 2023 at 13:35 Comment(0)
C
0

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 answered 13/11, 2023 at 16:33 Comment(0)
D
0

Chervonets
alright i just send the friend request on discord . my discord name is Imu

Descriptive answered 14/11, 2023 at 1:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.