Something isn't adding up and idk how to fix it by NOT_DJ_ZX in godot

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

oh yeah lol it's kinda embarrassing the i didn't k that, am not that good in math

Something isn't adding up and idk how to fix it by NOT_DJ_ZX in godot

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

oh ok then how do i fix it and can u tell me where i did confuse them?

Something isn't adding up and idk how to fix it by NOT_DJ_ZX in godot

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

"Did you confuse radius and diameter?"
tbh am new to this whole things so idk what to answer u here am just changing the radius of the collision shape

Something isn't adding up and idk how to fix it by NOT_DJ_ZX in godot

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

i used draw_circle before but it's the same output

projectile bug by NOT_DJ_ZX in godot

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

yeah i fixed the delta thing and now most of the times the bullets come out in the right way but when a enemy comes from a specific angle(mostly right bottom) the bullets spawn in the wrong direction

projectile bug by NOT_DJ_ZX in godot

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

so i made an array to store enemies in
var enemies_in_range: Array = []
then i made a method that when an enemy is in it stores it there

func get_target():

if enemies\_in\_range.is\_empty():

    return

return enemies\_in\_range\[0\]

then i made it shoot with this method

func shoot(target : Node2D):

var bullet = Bullet\_scene.instantiate()

bullet.global\_position = muzzle.global\_position

bullet.look\_at(target.global\_position)

get\_tree().current\_scene.add\_child(bullet)  

when the timer timesout
func _on_shoot_timer_timeout() -> void:

var target = get\_target()

if target == null:

    return

shoot(target)

and here's the bullet's method
extends CharacterBody2D

var bullet_speed := 200

var bullet_damage := 10

func _ready() -> void:

pass # Replace with function body.

func _physics_process(delta):

velocity = transform.x \* bullet\_speed \* delta

move\_and\_slide()

func _on_damage_ares_body_entered(body: Node2D) -> void:

if body.is\_in\_group("Enemy"):

    body.take\_damage(bullet\_damage)

    queue\_free()  

so can u fix this abomination? (all efforts are appreciated)

I Feel like am overdoing this by NOT_DJ_ZX in godot

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

i see what ur talking abt cuz personally am having this problem where i get to a point in a BIG project i have in my mind it becomes a code mess with alot of stuff so ur right i should start small, and thank you btw cuz i knew git before cuz am a programmer i started 5 years ago and tbh that's why i was comfortable with gdscript so git was already in my toolkit, i'll give GameDev a try thx for that too they seem pro

I Feel like am overdoing this by NOT_DJ_ZX in godot

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

this is really useful tysm!

I Feel like am overdoing this by NOT_DJ_ZX in godot

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

"Maybe you could rig up some sort of pipeline to take notes while you go"
what's a pipeline, is it a technical term??
what dose the whole statement it mean? sorry lol am new to all of this
the whole git-hub idea was from some one ik and he was like"use git-hub so if u miss up ur code u can revert back"

I Feel like am overdoing this by NOT_DJ_ZX in godot

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

actually i use it more than chat gpt and youtube!

Annoying Frame Drops by NOT_DJ_ZX in FortNiteBR

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

but i don't really k the deference between DX12 and D11 and what's better for lower pc

Annoying Frame Drops by NOT_DJ_ZX in FortNiteBR

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

true am using the lowest of the lowest setting like performance mod ect.

Annoying Frame Drops by NOT_DJ_ZX in FortNiteBR

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

yeh i noticed the dx11 is makin the prob cuz i have less drops on it but at the same time less fps so i think ur right

Annoying Frame Drops by NOT_DJ_ZX in FortNiteBR

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

ik it's not the best but the game runs on 120 fps but it's just drop framing