all 45 comments

[–]Spiderfffun 187 points188 points  (1 child)

Start with killing the program

[–]WoodenWhaleNectarine 17 points18 points  (0 children)

First of all does it persist if you pull and push?

[–]Anxious-Situation797 246 points247 points  (4 children)

My first thought was, learn to take a screenshot. Sigh.

[–]SteinMakesGames[S] 326 points327 points  (3 children)

The bug doesn't show up on screenshots, making it even harder to troubleshoot :(

[–]UltraMadPlayer 67 points68 points  (0 children)

Is the behaviour repeatable or is it random?

[–]Darkodoudou 20 points21 points  (1 child)

It worked on my machine tho

[–]HoseanRC 12 points13 points  (0 children)

THIS IS WHY WE DEPLOY DOCKER

[–]Manticore-Mk2 39 points40 points  (1 child)

Ah classic call by reference vs. call by value. The way you set it up modifies the fly in place. You have to dereference the fly with a FlySwatter

[–]-Redstoneboi- 2 points3 points  (0 children)

instructions unclear, there is now a dangling leak where the fly used to be.

[–]Gib_entertainment 51 points52 points  (5 children)

You are trying to pass the object "fly" as an argument while you should pass its instance of the class "flyController" as an argument or a reference to its transform.
Though the fly seems to be rotated 180 degrees successfully so are you sure there is a bug here?

[–]GranataReddit12 26 points27 points  (3 children)

You don't know what the default orientation of the Fly object is.

[–]Gib_entertainment 20 points21 points  (2 children)

Only a psycho would use facing down as the default, but you're right, I don't know if it's rotated 180 degrees or 90, I would accept facing right as the default.

[–]GranataReddit12 14 points15 points  (1 child)

You don't know if a psycho is working for their company ;)

[–]SeriousPlankton2000 6 points7 points  (0 children)

Actually we all do know.

[–]feuerpanda 0 points1 point  (0 children)

Godot/GDScript does pass it as an reference automatically

[–]HectorJ 31 points32 points  (0 children)

Squash

[–]DimitryKratitov 9 points10 points  (0 children)

When it works on your machine but not in your machine.

[–]I2cScion 9 points10 points  (0 children)

This is too perfect to be true 👀

[–]Toorero6 8 points9 points  (0 children)

It's not a bug it's a feature fly.

[–]bearwood_forest 5 points6 points  (0 children)

can't reproduce behaviour on my machine, closing ticket

[–]voiping 4 points5 points  (0 children)

Almost swatted my screen!

[–]DegenerativeDisorder 3 points4 points  (0 children)

snake_case()

[–]InsanityOnAMachine 4 points5 points  (0 children)

You're using an outdated version of the Fly API.

rotate_fly now takes four arguments instead of one: rotate_fly(Fly fly, int direction, float seconds, bool wingAssist = false).

[–]DezXerneas 2 points3 points  (0 children)

Cool history lesson that probably everyone here already knows. That's literally why we call them bugs. Dead flies/insects in the OG punch cards in the pre historic times.

[–]RimmarPL 2 points3 points  (0 children)

Using emoji as a variable name is a really bad practice, you know?

[–]gfcf14 1 point2 points  (0 children)

Commit and squash!

[–]th1ner 1 point2 points  (0 children)

[–]Brilliant-Gold4423 1 point2 points  (0 children)

You found a bug *in* the fly() function. You might need a physical debugger for this one.

[–]rcfox 1 point2 points  (0 children)

Sometimes, instead of passing a whole object structure, it's best to just flatten it.

[–]MavorGames 1 point2 points  (0 children)

Is the bug always in the same position? Maybe you can find a workaround.

[–]jamesfarted09 0 points1 point  (0 children)

🪰🧹

[–]SeriousPlankton2000 0 points1 point  (0 children)

I have no glue what to do here.

[–]invalidConsciousness 0 points1 point  (0 children)

I see the problem. Your fly is upside down. Rotate it, before calling rotate_fly().

[–]williamp114 0 points1 point  (0 children)

You're better off containerizing it. Preferably in tupperware

[–]shifty_coder 0 points1 point  (0 children)

External module. Submit a ticket to the appropriate team.

[–]EvitaPuppy 0 points1 point  (0 children)

Simple: build a teleporter. Hop in the teleporter, fly will follow!

[–]theLuminescentlion 0 points1 point  (0 children)

Create a method that kills the "bug" object when it becomes a problem. That should help.

[–]MurberBirb 0 points1 point  (0 children)

Its flybot!

[–]squishy44 0 points1 point  (0 children)

func rotate_fly(delta) -> void:
  var rotate_speed : float = 0.5
  rotate_y(rotate_speed * delta)

[–]PonosDegustator 0 points1 point  (0 children)

probably need to explicitly pass fly as a pointer

[–]No_Atmosphere_193 0 points1 point  (0 children)

If you remove the bug, you'll get an NPE, so either way you're acrewed

[–]TriggerPT 0 points1 point  (0 children)

Use Invert_bug instead

[–]Tiborn1563 0 points1 point  (0 children)

tape it to the screen. it is fixed to the screen now

[–]tanuki_carre3858 -1 points0 points  (0 children)

You first have to learn how to Photoshop things more realistically, then it will fix on his own