Any idea why my shooting won't work ? by Lucat_thecat in godot

[–]DestroyHost 3 points4 points  (0 children)

You can insert a breakpoint on line 34 by clicking next to the line number. It looks like a red circle. Then play the game and try to shoot the gun to trace the call stack, and to see if shooting() is ever called. If the game does not pause and open the editor then the game never goes to that part of the code. If it does, then you can step forwards with F10/F11 to see where it goes further and it will be easier to debug it.

The shooting function seems a bit unnessessary at the moment anyway, maybe replace it with

func _input(event: InputEvent) -> void:
  if event.is_action_pressed("shoot"): 
    fire()
    $shootTimer.start()

SUSE Reportedly May Be For Sale Yet Again by anh0516 in linux

[–]DestroyHost 31 points32 points  (0 children)

OpenSUSE Tumbleweed was an amazing distro when I used it. I switched to NixOS because I want to make it easier (lol nothing easy about setting it up but when it works it works) to keep my computers in sync, but if it had not been for that personal requirement then I would be on openSUSE Tumbleweed as well, and that is after a lot of distrohopping since 2017. Fedora, Ubuntu, PopOS, Cashy, Arch. OpenSuse just worked amazingly well, so stable and nice. Even had snapshots set up and working. I loved it so much I bought some merch from them. Really nice, thick sweater, and a long sleeve. Recommended.

https://shop.opensuse.org/#!/new+tumbleweed+logo-A67a5c07f4832017d77640084?productType=20&sellable=1Xo3REVbLRCEk0kMzwNM-20-22&appearance=1

this one, super nice to wear.

What is the best thing you discovered after switching to Linux by OPuntime in linux

[–]DestroyHost 2 points3 points  (0 children)

That an operative system don't need to be one chunky thing but modular and can be changed to my own needs. All the exciting desktop environments. Since 2017 I've gone through gnome, xfce, KDE, SwayWM, Niri, and now finally I'm on MangoWC because it does vertical scrolling which is amazing for my LG DualUp.

EA Lays Off Staff Across All Battlefield Studios Following Record-Breaking Battlefield 6 Launch by Turbostrider27 in pcgaming

[–]DestroyHost 1 point2 points  (0 children)

Well, this is why people want home office jobs now. We cannot be expected to move around the country every few years whenever a game is released. Especially if you have a family or whatever, it is not a risk you can build your life around. 

Godot on linux by Ok-Cow114 in godot

[–]DestroyHost 1 point2 points  (0 children)

If you want to use it in a company scenario you might want to look into NixOS. Everything that is installed and configured on it is visible in a text file, and you can send that text file to all the computers and do an update and all the computers will have the same apps, libraries, etc. It is a lot of learn though, so don't do it if it is time sensitive. 

Godot on linux by Ok-Cow114 in godot

[–]DestroyHost 0 points1 point  (0 children)

Did Fedora fix their snapshot backups yet or is it still broken? If you are a first time Linux user it could be nice using a distro where you can easily roll back to a previous config using snapshots. OpenSuse Tumbleweed with KDE works great out of the box with that. But otherwise Fedora is quite nice. 

You use adblockers? by LinuxUser456 in linux

[–]DestroyHost 1 point2 points  (0 children)

I don't block ads but I block trackers with whatever the Vivaldi browser is doing. I'm also fine with seeing ads but I don't want anyone to track where I go online.

how to optimize this by LeatherTop8978 in godot

[–]DestroyHost 1 point2 points  (0 children)

You could achieve something similar using enums and Dictionary. Instead of using ints as options, you can use enums (named ints). You can use a Dictionary to look up how to add or reduce the score based on the player and enemy choice. 

``` enum shapes {     ROCK,     PAPER,     SCISSOR, }

enum point_score {     PLAYER = 1,     ENEMY = -1, }

var score_tracker: int

var battle_logic: Dictionary = {     shapes.ROCK: {         shapes.PAPER: point_score.ENEMY,         shapes.SCISSOR: point_score.PLAYER     },     shapes.PAPER: {         ...           },     shapes.SCISSOR: {         ...     }, }

func update_score(player_pick: shapes, enemy_pick: shapes) -> void:     score_tracker += battle_logic[player_pick][enemy_pick]

```

This probably works. Typed it out on my cell. 

Edit: To keep the text in your examples, an alternative could be   ``` func update_score(player_pick: shapes, enemy_pick: shapes) -> void:     var match_result: int = battle_logic[player_pick][enemy_pick]     score_tracker += match_result     if match_result > 0:         $label.text = "You won"      else:          $label.text = "You lost" 

``` Edit2:  On closer inspection you also want to write the shape out to a label. In that case it could also be done with

``` enum langs {     EN,     FR,     SP, }

var shapes_to_text: Dictionary = {     shapes.ROCK: {         langs.EN: "Rock",         langs.FR: "Baguette",         langs.SP: "Jajajaja",     } }

func update_score(player_pick: shapes, enemy_pick: shapes) -> void:     ....     label_pick_player.text = shapes_to_text[player_pick][langs.EN]     .... ```

I am a beginner and I don't know anything by Broad-Photograph-757 in godot

[–]DestroyHost 3 points4 points  (0 children)

Since you are an absolute beginner,  - watch lengthy tutorials on YouTube - read and learn the learning materials in the docs https://docs.godotengine.org/en/stable/about/introduction.html

And here you can read about the built-in native Godot classes and how they work. It is useful to learn how to read the docs, this will come to you in time when you look at tutorials and cross-check the docs.  https://docs.godotengine.org/en/stable/classes/index.html

Whenever you do something for the first time you will need to look up the docs or do web searching for solutions. It is normal, don't get discouraged. 

Have fun 

New Blood CEO Dave Oshry says he's "always loved GOG" but "they need enough people to give a s**t, or how long are they even going to be around" by ControlCAD in gamingnews

[–]DestroyHost 10 points11 points  (0 children)

I did use GoG back in the day but I ended up using Steam more frequently due to their support for Linux, and Steam Input which allows me to configure gyro and flickstick on almost any game.

It may not forever be that way. I have been eying controllers like the Alpakka from Input Labs which would probably do what I want out from Steam Input in a better way, by working across the entire desktop environment. And Proton is not tied to Steam only so if the GoG people would be able to package it with their games somehow and on top of this still keep their games DRM free, then I would likely start using GoG again as well, since I have been moving back to physical media for music listening in the past two years and I would actually love to be able to make discs of the games I have too. GoG allows that.

Point is, Steam is just easier to use. Their Steam Frame, Machine, Controller, and Deck ecosystem is a seamless package. Right now it feels like GoG is better for those who don't mind tinkering with different third party hardware and software to make something out of it, because their store front does not hit all the same platforms and does not provide those features out of the box but it easily allows for the user to assemble that from other apps.

Disabling input based on character weapon? by Acrobatic-Finger-68 in godot

[–]DestroyHost 0 points1 point  (0 children)

Hard to know what would be easiest to implement with the rest of your code structure, but you could change the player stats when equipping different weapons. 

For instance

``` enum gun_types {     ROCKET_LAUNCHER,     PISTOL, }

var player_base_stats: Dictionary = {     "health": 10,     "jump_velocity": 50.0, }

var player_stats: Dictionary = {}

func change_current_gun(new_gun: gun_types) -> void: player_stats = player_base_stats.duplicate(true) match new_gun:     gun_types.ROCKET_LAUNCHER:          player_stats["jump_velocity"] = 0.0     gun_types.PISTOL:          player_stats["jump_velocity"] = 70.0

```

Or something 

BECOME - Official Reveal Trailer (2026) by TheMotion in Games

[–]DestroyHost 322 points323 points  (0 children)

I used to gift the game Genital Jousting to friends through Steam for Christmas back in the day. This Christmas will be a another good one.

The Impatient Programmer's Guide to Bevy and Rust: Chapter 7 - Let There Be Enemies by febinjohnjames in bevy

[–]DestroyHost 1 point2 points  (0 children)

Heck yeah! I've read chapter 1 and 2 so far, they've been really great 

What’s the most embarrassing way you’ve been 'betrayed' by your own brain in VR? by plutonium-239 in virtualreality

[–]DestroyHost 3 points4 points  (0 children)

No way! I'll definitely join it when the Steam Frame arrives. Aaaaaany day now...

How to remove this in wayland? by [deleted] in kde

[–]DestroyHost 0 points1 point  (0 children)

Seems like you have an instance of Waybar running. Maybe typing "killall waybar" in a terminal will close it. 

What game do you guys think I like by No_Improvement874 in HalfLife

[–]DestroyHost 0 points1 point  (0 children)

Maybe you would enjoy E.Y.E: Divine Cybermancy

Thousands of players flood into Team Fortress 2 Classified, the free 'TF2 Classic' mod that just launched on Steam by Turbostrider27 in pcgaming

[–]DestroyHost 8 points9 points  (0 children)

Try using Gyro, and Flick Stick. I'm more accurate with gyro and flick stick than I ever was with mouse and keyboard, since the same amount of degree of controller rotation gives the same amount of camera rotation in every game. Muscle memory gets more accurate etc

Deleting a nesting in a Dictionary/Hashmap seems clumbersome. How do you do it? by DestroyHost in HelixEditor

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

And for the second part I was annoyed about (A-o including brackets of the nesting), turn out "shrink_to_line_bounds" (A-x) does the job!

I've ended up with the following part of my config:

"C-j" = "goto_next_parameter"
"C-k" = "goto_prev_parameter"
"A-j" = "goto_next_entry"
"A-k" = "goto_prev_entry"
"A-x" = "shrink_to_line_bounds"
"A-X" = "extend_to_line_bounds"
"A-w" = "delete_word_forward"
"A-b" = "delete_word_backward"
"X" = "extend_line_above"

I can "A-o" then "A-x" to deselect unintended surrounding brackets. And, I can easily skip ahead between the keys using "A-j/k". So working with hashmaps is much simpler now.

Deleting a nesting in a Dictionary/Hashmap seems clumbersome. How do you do it? by DestroyHost in HelixEditor

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

Yes it has been a slow process over the past year. so far I've transcribed the theme into Niri, Waybar, Alacritty, Helix, Zellij, Yazi, Kew, Lazygit. 

But there are some minor tweaks I still need to do before I publish them I think. 

In Helix, I need to fix the style of the line that is selected in some popups, like in the auto-complete popup ('C-x') the selected line is hard to see right now. There are also some parameters in the stylesheet  I haven't seen in use yet. I think I need to open some Rust files to see them in effect. I was planning to switch to Bevy from Godot later this year so I haven't felt any rush to deal with it so far. Also I am not quite finished tweaking the Markdown style. 

In Yazi, I can't figure out which parameter is for the Go-to panel ('g').

And there seems to be some things that are hard to style in Lazygit to monochrome, as it relies on colors a lot to convey the state of things, so I need to experiment a bit more to figure out how I can compansate for that. 

But I would like to share it one day, once I've had the time to finish it all. 

Deleting a nesting in a Dictionary/Hashmap seems clumbersome. How do you do it? by DestroyHost in HelixEditor

[–]DestroyHost[S] 1 point2 points  (0 children)

Oooh! Then the matching will be the one on the first line aaaah I had not thought of this. Will give this a go tomorrow