Skip to content

u/Dragon20C

In this archive from Dec 2019 to Dec 2026

91
posts
301
comments
55
media
3.3k
score

I have a footstep script but in my multiplayer game the audio only plays from one player for both players.

So when when the second player joins and walks the audio only plays from the first "host" player. footstep script: extends AudioStreamPlayer3D @export var player : Player @export var audio_files : Array[AudioStreamOggVorbis] var stepped : bool = false var frequency : float = 2.0 var amplitude : floa...

1 points0 comments
Open on Reddit

2d - Rotation doesnt loop correctly!

I am trying to rotate my top down player to the mouse position, I got it working but when it reaches the edge of the rotation degrees it goes from a positive number into a negative number causing the rotation to go backwards instead of continuing the rotation, now I know why it happens but I cant fi...

2 points4 comments
Open on Reddit

(3d) I made a rocket jump, but it only works if im looking away from the bottom of the player

here is a video of the problem : https://youtu.be/3L4heA3Ptkw I recommend you watch the video since it gives you a lot of more information on what I am doing. the issue: So when I aim down on the floor the player is supposed to get force applied to it making it go up, but instead of going up, its ge...

1 points4 comments
Open on Reddit

How do I go about doing movement not based on input for example, make the player move to a ledge grab.

I have a lovely player controller with a state machine, I have a ledge state and I have a position of the ledge, I can disable character movement and gravity since I am using a state machine, but I am not sure how to make the player move to a position in a good way, I thought of using a lerp but doe...

1 points0 comments
Open on Reddit

I am trying to create recoil for my guns but I am struggling to make it so when the user controls the recoil it stays at the target location. 3D

This is going to be hard question to answer but as simple as possible, I have a recoil script that recoils the gun up and when I stop firing it goes down, now what I want is it to not go down if the user has "controlled" it holding the recoil in a similar place. I am looking for some ideas on solvin...

1 points2 comments
Open on Reddit

reinstalled my linux and windows 10 on my system, I find windows is using the same efi partition as my linux!

This might be a windows focused question. So I recently gotten a new nvme drive to install on my system so I installed the drive and installed manjaro kde linux, fantastic I also want windows 10 for some games that dont work on linux, I installed windows 10 on another drive, I finish the install and...

0 points15 comments
Open on Reddit

How to make a simple crafting system?

I am trying to wrap my head around a simple crafting system, what I want it to do is this, if has materials remove them and then give the player the item, so if a recipe has 3 items check if available and then remove them and add the item to the player, I have a inventory system that I have made but...

5 points7 comments
Open on Reddit

I am making an inventory but I am stuck on this issue, I am trying to create a new item into a slot.

Here is a youtube video of the problem : https://www.youtube.com/watch?v=_8Pa_wz4bfk here is the situation I am trying to code for, so when the player is holding an item and wants to drop an item into any slot that is empty I want to the item to duplicate its self into the slot and make the item amo...

7 points9 comments
Open on Reddit

Trying to make an inventory system, I have buttons in a grid container but I need to some how access them with a button press and have it give me an index but the buttons amount could be different, so I want it dynamic

Here is pictures one of a slot and the other being the inventory https://pasteall.org/pic/1b490018d43c44688f674dca7e18fde7 https://pasteall.org/pic/a1961ed4dea24067b1f405558890b30a I want to be able to access these buttons and have them print a index, that correla

3 points2 comments
Open on Reddit

I want to learn behaviour trees

Hello guys I finally started hitting a intermediate level of programming, and I want to start learning how to do behaviour trees, a guy from stackoverflow suggested and implemented a behaviour tree into my code/project but I can't make sense of it, and when I try watch a video on behaviour trees I e...

3 points9 comments
Open on Reddit

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.