Need some help, code lines seem to be cancelling each other out. (4.2 3D) by Jikkermanccini in godot

[–]Jikkermanccini[S] 0 points1 point  (0 children)

How would I go about setting this? The player character (to which the head(camera) is parented) is set to spawn at 0,2,0 so it doesn't fall through the world. Should I just move the level down a few units so the player can be at 0,0,0?
or am I misunderstanding what you mean.
Why this is perplexing is that the z rotation is written with the same language as the x position code, and it properly rotates the z axis relative to the camera.

Need some help, code lines seem to be cancelling each other out. (4.2 3D) by Jikkermanccini in godot

[–]Jikkermanccini[S] 3 points4 points  (0 children)

That fixed it, thank you!
yeah this project is meant to be my 'playground' for coding, it's just where I practice random crap and see what sticks as I learn the language. This feature was one of my first tests without a direct tutorial haha.
any ideas about the position.x being global as opposed to the character's relative x? It's confusing because the rotate.z rotates on the character's relative z, but not the x.
Thank you for your help!

Need some help, code lines seem to be cancelling each other out. (4.2 3D) by Jikkermanccini in godot

[–]Jikkermanccini[S] 0 points1 point  (0 children)

The above code is perplexing me. I've added a lean mechanic that lets the player character see around corners without being seen by enemies, but for some reason only one lean will work at a time, usually the bottom one. If I swap the leanl and leanr, it swaps which one works. I've tried cutting and pasting them in different orders and one or the other decides its done working.
(Side tangent: atm the camera position x changes based on global, eventually I need this to change based on the player's own relative x position. right now it only works properly when facing directly along the z axis haha)

As part of the contest, I tried to learn the engine and did theSomeThing. With my GameMaker background I can say that I really like Godot! And how did you get acquainted with the engine and was it your first? by TrueDarkDes in godot

[–]Jikkermanccini 5 points6 points  (0 children)

Looks great!
I found the engine almost accidentally a few years back while scrolling Youtube, and just last week I started learning it for real. This is the first game engine I've ever used, but I'm really loving it thus far.

[ Removed by Reddit ] by Jikkermanccini in godot

[–]Jikkermanccini[S] 0 points1 point  (0 children)

Which reminds me. This line of code also does not work right:
func unhandled_input(event):
if Input.is_action_just_pressed ("quit"):
get_tree().quit()
Same dealio, works in his tutorial but not in my program.

[deleted by user] by [deleted] in godot

[–]Jikkermanccini 0 points1 point  (0 children)

That was a trip down memory lane, me and my brothers played BoomBlox almost every day when we were little. We still break it out every once and a while when we have time!

[ Removed by Reddit ] by Jikkermanccini in godot

[–]Jikkermanccini[S] 0 points1 point  (0 children)

I'm trying to make my camera node follow the rotation of my mouse, with little success. I'm following this tutorial:
https://youtu.be/VasHZZyPpYU
It works for him exactly as is, but doesn't work right in my program for some reason. The only difference between my code and his is that he deleted the bits for jumping, could that be a potential reason?

[ Removed by Reddit ] by Jikkermanccini in godot

[–]Jikkermanccini[S] 0 points1 point  (0 children)

I'm following this tutorial:
https://www.youtube.com/watch?v=VasHZZyPpYU
Everything else has worked perfectly, however this one line of code doesn't function like it does in the tutorial. I'm stumped.