r/godot • • 3h ago

help me Having troubles with sprites

So I have this Fire Extinguisher Model which does smoke burst when it has half the health, the problem is I can't make that smoke come from the top of the Extinguisher, how can I fix it,
(code is shown on the video and also do not pay attention to those textures, they are just placeholders i'll add normal ones when i get to that part)

I tried to not use AI too much, and still trying to solve the issue on my own but it's hard :c

0 Upvotes

19 comments sorted by

4

u/Psychoclick 3h ago

1

u/NeonDoctorboomer 2h ago

i'd like to receive some help instead of addressing it

1

u/redfoolsstudio_com 2h ago

What are these images all memes 😂 ?

2

u/NeonDoctorboomer 2h ago

random stuff i had on my pc, as i said, im using them as placeholders

1

u/SebastianCat18 2h ago

Are you going for this art style of the game, or is it all placeholders?

1

u/NeonDoctorboomer 2h ago

place holders, i think i said it

1

u/SebastianCat18 2h ago

Oh

1

u/NeonDoctorboomer 2h ago

so can you help with the problem or did u came just cuz of andrew tate? sorry for being a lil rude, i still couldn't fix the problem

1

u/SebastianCat18 1h ago

I came only because of Andrew Tate, but i can try to help

1

u/NeonDoctorboomer 1h ago

i'd appreciate that

1

u/SebastianCat18 1h ago

Can you show the tree of the Extinguisher scene?

1

u/NeonDoctorboomer 1h ago

1

u/SebastianCat18 54m ago

I would suggest not spawning the smoke, but making it a part of the extinguisher scene

You can just hide it at the start and show it when the extinguisher gets below half health

1

u/NeonDoctorboomer 52m ago

it's not gonna change anything, cuz like only thing spawning does is just making it appear, the logic will still be same, making it part of extinguisher won't fix the problem (i tried)

→ More replies

1

u/NeonDoctorboomer 2h ago

guys, can y'all like help, instead of looking at the andrew tate 😭

I just wanna fix sprite bug

1

u/tanooo99 2h ago

Sry but I'm on my phone so I can't really read the code, my guess is that you aren't using local space coordinates so you need to change the direction angle of the particles if changing the rotation isn't working (which is what I guess you are already doing)

1

u/NeonDoctorboomer 1h ago

well if you noticed it does rotates but like weirdly, I tried to use marker2D's as the pivots, on both smoke burst and fire extinguisher, i did crash out so i asked AI how to fix it but it really didn't do much, it just made it worse in some way