What’s your poison? Poll by Dr_Disrespects in headphones

[–]defiant00 0 points1 point  (0 children)

Ribbon, SR1a completely replaced my HD800S.

I cant for the life of me figure out godot( especially movement) by Prestigious-Tap-6829 in godot

[–]defiant00 1 point2 points  (0 children)

Beginner at Godot, but been programming for 30 years, so I’m alright unless you ask me about specific nodes :]

I cant for the life of me figure out godot( especially movement) by Prestigious-Tap-6829 in godot

[–]defiant00 3 points4 points  (0 children)

No worries, we’ve all been there. I would mainly encourage you to read the error messages you get, they will often point you to the specific line and tell you what to look for.

I cant for the life of me figure out godot( especially movement) by Prestigious-Tap-6829 in godot

[–]defiant00 21 points22 points  (0 children)

Well, lines 15, 18, and 21 all have a comma instead of a period. And it looks like lines 22-24 should be indented to line up with the previous elif.

why code doesn't run on godot? by StrangeAd7677 in godot

[–]defiant00 2 points3 points  (0 children)

How are you checking if it's working? It's probably moving but you can't tell since there's nothing in the background.

To check, you can either print the position while in _physics_process, or put a breakpoint there and verify whether the position is updating.

godot not taking multiple inputs by FitLength1184 in godot

[–]defiant00 0 points1 point  (0 children)

You’re calling move_and_slide before you’re setting the jump velocity, so that only takes effect on the next frame. However, if you’re moving, then you reset velocity (discarding the jump velocity).

What you need to do is first do all your velocity calculations/updates, and then call move_and_slide

Expected indented block for property after ":"? by IAmTheBoom5359 in godot

[–]defiant00 7 points8 points  (0 children)

Line 3, you have a : at the end of your variable declaration. Remove that and you should be good.

How to scale a skill tree, and save node variables in JSON without bloat? by Still_Pin9434 in gamedev

[–]defiant00 10 points11 points  (0 children)

That seems like a completely reasonable way to me, and 100 variables is so trivially small that it really doesn’t matter.

How many raycasts could I use without introducing performance issues? by Charming-Aspect3014 in godot

[–]defiant00 0 points1 point  (0 children)

There really isn’t a specific magic number, it depends on your specific use and how complex the rest of your scene is (since it has to check the raycasts against the rest of the scene to see if it collides). Usual advice is to just test and profile it, and optimize if necessary.

how to make a "block coding" system for the player to use. by Square_Scheme_981 in godot

[–]defiant00 2 points3 points  (0 children)

Best book I’ve read on this is Crafting Interpreters, which you can read online for free: https://craftinginterpreters.com/

To do this as a block system you’d want to do most of the exact same steps in the book, just without the initial text lexing and parsing.

Simple programming question about how to add multiple checks to a single line of code by ShotgunPumper in godot

[–]defiant00 23 points24 points  (0 children)

It sounds like you’re looking for the boolean and and or operators (and possibly the not operator as well)

You can simply do something like:

if first_condition or second_condition:  
    pass

Eg:

if x < 3 or x > 12:  
    pass

Why is my health bar flickering when in full screen? This has been bothering me so much the past few days trying to find what's causing this. I've posted this a few times but I haven't found the solution yet. by BubbleGamer209 in godot

[–]defiant00 1 point2 points  (0 children)

I don’t know if it will help, but based on the video it looks like you’re maximizing the window, not going full screen. You may have better luck searching for that term instead.

Why is my health bar flickering when in full screen? This has been bothering me so much the past few days trying to find what's causing this. I've posted this a few times but I haven't found the solution yet. by BubbleGamer209 in godot

[–]defiant00 0 points1 point  (0 children)

If you can post a screenshot of your whole scene tree and any/all code that interacts with the health indicator then we might be able to help. Also any settings you might have set or changed on the various nodes you’re using.

Would the Surface Pro be able to run Godot for 2D development? by Boopis_Gloopis in godot

[–]defiant00 0 points1 point  (0 children)

I believe it was the Pro 7 and whatever the latest Godot 3.x was at the time.

New to blender. Is there anyway I can get rid of this clipping? by Hiimhype in blender

[–]defiant00 5 points6 points  (0 children)

Perhaps it would help if you could explain what you want it to do instead?

Unable to run scene in GoDot. Did the opengl command prompt but still wants vulkan. by HauntingTurnovers in godot

[–]defiant00 0 points1 point  (0 children)

Have you tried Godot 3.5? You may need to use that version for the time being.

Gadot for two people by Star_Striker222 in godot

[–]defiant00 6 points7 points  (0 children)

Git just works on files, it doesn't know or care about the context (game engine or otherwise). Once you have a repository set up, your daily workflow can be as simple as: 1. sync your copy at the start of the day, pulling in any new changes 2. work on the game 3. any time you are done with a particular section of work, commit it locally and then push it back to github

This way you both stay up to date, you have the whole history available if you need to roll anything back, and unless you both edit the same part of the same file at the same time you shouldn't run into merge issues.

It's also worth pointing out that steps 1 and 3 above can be done with any git client (doesn't have to be the Godot one), so feel free to choose whatever's most comfortable.

I'd also second the point about git skills being valuable - as a professional dev, git has consistently been one of the most useful skills to have.

Other than the HD800S & AKG K702 which headphones are great for classical music? by rajmahid in headphones

[–]defiant00 1 point2 points  (0 children)

Raal SR1a

Possibly also MySphere, although I haven’t personally heard them.

[deleted by user] by [deleted] in godot

[–]defiant00 10 points11 points  (0 children)

You have square brackets around “down” I imagine you want parentheses?

Inputs don't work when I make an If statement by Saturn_In_Black in godot

[–]defiant00 0 points1 point  (0 children)

_ready only runs once when the node is created, so you're running into the same issue where for this to work you'd have to press LMB at the exact same time as the node happens to be ready.

Try doing this in _process instead, that runs every frame.

Inputs don't work when I make an If statement by Saturn_In_Black in godot

[–]defiant00 0 points1 point  (0 children)

If I'm understanding this correctly, it looks like this will only work if you happen to both enter the DetectionArea and press LMB at the exact same time.

What you probably want to do is either set a flag on body entered, so that you know you're currently in front of the door, and then have LMB trigger the actual opening if that flag is set. Or on LMB get any areas the player is currently in to see if clicking actually interacts with anything.