Buy this Domain

Community Discussions

Explore the latest discussions and community conversations related to this domain.

Why doesn't global position work?

Main Post:

I have a player that shoots a fireball. The fireball is connected to a Position2D node. For some reason, no matter where I move the node the location where the fireball comes out doesn't change. Why is that?

code, player.gd:

extends KinematicBody2D const GRAVITY = 10 const FLOOR = Vector2(0, -1) const FIREBALL = preload("res://Fireball.tscn") var speed = 100 var jump_power = -250 var on_ground = false var velocity = Vector2() func get_input(): if Input.is_action_pressed("ui_left"): velocity.x = -speed $AnimatedSprite.flip_h = true $AnimatedSprite.play("run") elif Input.is_action_pressed("ui_right"): velocity.x = speed $AnimatedSprite.flip_h = false $AnimatedSprite.play("run") else: velocity.x = 0 $AnimatedSprite.play("idle") if $AnimatedSprite.flip_h: $Position2D.position.x = -1 else: $Position2D.position.x = 1 if Input.is_action_pressed("ui_up"): $AnimatedSprite.play("jump") if on_ground == true: velocity.y = jump_power on_ground = false if Input.is_action_just_pressed("ui_focus_next"): var fireball = FIREBALL.instance() get_parent().add_child(fireball) if sign($Position2D.position.x) == 1: fireball.set_fireball_direction(1) else: fireball.set_fireball_direction(-1) get_parent().add_child(fireball) fireball.position = $Position2D.global_position func _physics_process(delta): get_input() velocity.y += GRAVITY velocity = move_and_slide(velocity, FLOOR) # second parameter is to let godot know what the floor is if velocity.y < 0: $AnimatedSprite.play("jump") elif velocity.y > 0: $AnimatedSprite.play("fall") if is_on_floor(): on_ground = true else: on_ground = false # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body.

fireball.gd :

extends Area2D const SPEED = 150 var velocity = Vector2() var direction = 1 # represents facing to the right # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. func set_fireball_direction(dir): direction = dir if dir == -1: $AnimatedSprite.flip_h = true func _physics_process(delta): velocity.x = SPEED * delta * direction translate(velocity) $AnimatedSprite.play("shoot") func _on_VisibilityNotifier2D_screen_exited(): queue_free()

EDIT

after playing around with the position2D node I found out that the fireball will change its y value depending on where the node is but the x value will never change. Why is that?

Top Comment:

XX

Forum: r/godot

Global Regular Expression doesn't work

Main Post:

I set up a a Global Regular Expression to exclude Shared memory being discovered by the Template SNMP Disks - Space Partitions but those partitions are still being discovered and it's annoying going hosts by hosts disabling them.

Can someone tell me if I'm doing something wrong? I also added a filter in the same Template to prevent the same issue but it seen that doesn't work neither.

https://i.imgur.com/SyxFCRB.png Global Regular Expression

https://i.imgur.com/P6uJ3A0.png Filter in Template SNMP Disks - Space Partitions

Top Comment:

You should be referencing the Global regular expression by name in the template discovery rule:{#SNMPVALUE} matches @Exclude Shared memory from Discovery

Forum: r/zabbix

Global Secure Access Client (preview) won't Tunnel?

Main Post:

I setup the Global Secure Access for private access to test as a VPN replacement as our needs for VPN are very limited. However since I setup a few months back, the client health check is failing. It states at the very top:

"Connection to Private Access diagnostic URL failed"

I have all green checks except:

Tunneling succeeded Private Access

I've done all the IPv6/Secure DNS settings per the learn articles (https://learn.microsoft.com/en-us/entra/global-secure-access/how-to-install-windows-client#disable-ipv6-and-secure-dns) and there is no proxy. I just assumed that maybe something with my tenant wasn't setup yet. However if I have the options in the entra portal, I would think that it's enabled for preview in my tenant.

I just have a very simple forwarding profile to allow 3389 to my workstation (single IP). I did try setting up Internet access and M365 access and when I did that, the client got the forwarding info, but still failed to tunnel for those as well.

Anyone else have this issue?

Top Comment: having the same issues. it was working last month when implemented but it has now stop working

Forum: r/AZURE

If I were judging Global All Stars (won't speculate on how a queen would've done on a challenge they weren't there for / a lip-synch that didn't happen -- just judging what I've actually seen)

Main Post: If I were judging Global All Stars (won't speculate on how a queen would've done on a challenge they weren't there for / a lip-synch that didn't happen -- just judging what I've actually seen)

Top Comment:

Nehellenia bottom for the ball???

Forum: r/dragrace

241212 Stray Kids have won Top Global K-Pop Artist at the Billboard Music Awards 2024

Main Post: 241212 Stray Kids have won Top Global K-Pop Artist at the Billboard Music Awards 2024

Top Comment: That's because they're Fa-KING giants. Congratsssss everyone 🥳

Forum: r/straykids

On the Global All Stars winner…

Main Post:

Online I’ve already seen a lot of negative comments regarding the winner of GAS. I too, wanted Nehellenia to win, and she done great in the finale; however Alyssa Edwards was also great this season and had a good run - especially showing a lot of self growth, from season 5 and even all stars 2 Alyssa seems to have matured and grown as a person a lot and that is beautiful to see. All hail the Queen Tongue Pop👑

What was your favourite part of the finale? I loved Ru’s interaction with Nelly on stage at final critiques.

Top Comment: Alyssa did somehow okayish this season and she didn't show any growth besides having more money because production protected her at all costs, she just sorta been there and there is NO way she is more deserving of the crown than Nelly or even Kween. I mean...it's just tiring to try and support queens that are not meant to be the winners but they deserve it. Nelly not winning this season when she was the best all around and had the most support is just crazy at this point lmao.

Forum: r/dragrace

Global Markets are all surging with the Trump Win. Trump is here and the world will be better for it.

Main Post:

I remember some chronically online redditors saying market will crash and world will end if trump wins lol.

Top Comment:

This is just a random short term sentiment. Both trump and kamala are equally bad for the indian market in the long run.

Forum: r/IndianStockMarket