how can i use a wait function in my script
thanks so much for helping me out, sorry for wasting your time
Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.
thanks so much for helping me out, sorry for wasting your time
Steam is very slow to launch the game for the first time. During the freezing period, no files were created in the background, meaning it might freeze before executing the following code: extends Control var Ui = preload("res://gdscripts/ui.gd").new() var NewGameDataSetting = preload("uid://bb1xxvx3qnsol").new() var DataSettingBase = preload("uid://dd8ukrnlevurv").new() var data_io = preload("uid://ckb5066uh4r3c").new() var Custom = preload("uid://bypcecvn1hm60").new() var LoadFun =…
DANG i’m so sorry for wasting all of your guys time, i just realized thats exactly how dashing works in most games anyway, i can’t believe it took me so long to realize, thanks for taking your time to try and help though
Use Claude , you will have it done in 5 minutes. /s
But that doesn’t really answer the question of why it needs to be an integer vs. a float.
The title is derived from the saying: “Those who live by the sword shall die by the sword” The theme of the game is to illustrate the folly of man; the insanity that we, who are capable of such genius, and of working together to build a society of abundance, especially through technology, insist on obliterating each other and creating a world of scarcity, poverty and death. That’s also the idea behind the title “DBTS” - its a little tease. because the idea that the activision corporation would…
at the moment i’m trying to make a dash with a cool down and limited dashes so i was thinking to have an int based system cause its only big bursts of stamina that needs to be removed and regenerated, i also realize that in that case i may as well just use a normal cooldown rather than a stamina based system
Why do you need it to be an int? Almost every single game I know, Stamina bars are a float since it’s easier to deal with and have a smoother curve you can represent on a progress bar. Having it be an int would require a lot of back and forth conversions. Could you tell us why you need it to be an int exactly?
Given the description, wouldn’t the more fitting tile be DBTWOMD - Die by the weapons of mass destruction?
thinking about it now i could also try having 3 charges of sorts that get depleted and recharge over time rather than a dynamic stamina system
var stamina: float = 100: set(stamina_value): stamina = clamp(stamina_value, 0, 100); func _process(delta: float) → void: if stamina < 100: stamina += delta * 10; i got it working so thanks alot, only issue now is that now the stamina becomes a float when it regens, i need it to be an int value cause this is for a dash system that consumes and then regenerates stamina
I mean its a slow spacey ambience track. You can hardly call it music. but… I actually think this is a fantastic starting point. You should %100 use this where it fits in your game. Some games have excellent music. Skyrim comes to mind. But they used actual composers and orchestras. Most of us dont have the means for that. So your using a simple ambience track to elicit a certain mood. Its a good, practical strategy, and a ton games do it.
Im sorry for my misleading wording. Of course there a functions, that have a return type. My answer focused on the error the author had. I will try to give better answers next time, but thanks for the feedback.
as @normalized said you need to iterate, also you might need more sprites per each direction if you want it to look good
well if you think about it one second is very short amount of time, it takes about one second to count to one… i know that’s a lot… also 100 thousands characters in the world while only 10000 on the screen, i think it’s not that ambitious really if you don’t have at least quarter milion advanced neural network npcs on the screen performing tasks, even small games like worldbox or rollercoaster tycon (if we talk about older games) were able to get up to thousands of npcs at the screen while…
Iterate through tiles and determine tile type. The type maps to one of 4 cardinal direction vectors. Use that vector to calculate the spawn position offset from the tile center. Also pass it to look_at() function to aim the cannon in that direction.
i think the tutorial is not understandable, at least for the first few seconds i don’t know what happens i just see some art that isn’t very clear, i suggest you making more clear tutorial or if tutorial is some sort of prologue if this is more story-based game then change the tutorial’s name to prologue
I agree with the others that context is doing a lot of the work here. I gave it a listen and, for a slow exploration game in the No Man’s Sky mould, the dreamy, unhurried feel fits nicely — it would sit well behind wandering and discovery rather than anything tense. I would keep it calm and let it breathe.
for cooldowns i usually use delta timers and main _process function, here i update every object and node in my game that exists, for instance let’s say you have player object func _process(delta: float) -> void: player.update(delta); and inside player: var stamina: float = 100.0: set(new_value): stamina = clamp(new_value, 0.0, 100.0); var sprinting: bool = false; func update(delta: float) -> void: if (sprinting): stamina -= delta * 10.0; else: stamina += delta * 5.0; this code works like this:…
Don’t parent the bullet to the player. Instead, parent it to some node that’s above the parent. Alternatively you can parent it to player and set its top_level flag so it doesn’t inherit parent’s transforms.
This is not true, at least not in the way you presented it. Just because something is a function doesn’t mean it cannot return anything. Calling a function DOES indeed return something you can use. That’s how so many functions work. That’s how things like get_angle_to work, that’s a function as well, and it returns a float variable. To say that a function will not give anything is simply wrong and misleading. What IS true, is that certain functions have a void return type, which means they do…
Dictionary values can be arrays or objects.
Could you show us what your current setup is? The code, the hierarchy, etc

Godot Version Godot v4.7.2.stable Question Hello, i'm a beginner and i need some way to make a cooldown for stamina regen, i need it to regenerate a certain amount at a time but i can't figure out how to do it in an efficient way whenever the stamina goes below a certain amount, i tried using a Timer but i'm really struggling with it, any help would be appreciated.
I made a cheat sheet that just runs through some important gdscript code that most beginners will encounter and likely go “what is this” heavily inspired by the PICO-8 Cheat Sheet by Liquidream, credits in the actual image itself (and a link to the inspiration here) Can also be useful for some experienced godot users aswell!! i hope it is of use to people (google drive link too bc im unsure if godot forums compresses image files, here)

Hi everyone! I’m really proud to share with you all a game made in 48 hours for a local game jam. In Money Doesn’t Grow on Trees, you play as Stee, a mutated gardener fish, taking care of Pr. Maria GIRLBOSS garden by planting trees that gives you money !!! Plant a tree and use money to evolve it Water them so they keep producing Protect them by punching praying mantises trying to eat them Reach every tier of Pr. Girlboss’ requests to unlock all the plants The game is available right here on…
Godot Version 4.7.2 Question I’m trying to learn how to perform basic functions in the Godot 2D space, and I have followed a guide online on firing a projectile. The problem I have is that the projectile will move side to side with the player moving side to side, rather than just moving up the Y axis at the X position it spawned at. I’ve tried a few guides online, such as putting owner. before add_child. I tried to see if there is a signal to export the function to main scene, or if I can just…
I created a port for material 3 to be used in Godot. I personally love the modern style of websites and apps, but video game UI always seems to fall by the wayside. So I made this a while back and decided to upload to github and share. Hope you guys find it helpful, github.com GitHub - rnewquist/godot_material3 Contribute to rnewquist/godot_material3 development by creating an account on GitHub.
One of my biggest gripes with Godot as a software engineer was the lack of a good testing framework. Not that this is good but I like it. I wrote a testing harness for Godot that I’ve been using it for a while and decided to post it on github and share it. Its an add-on for Godot that allows you to write unit tests, integration tests, and my favorite part, take “snapshots” of Godot. This is where you can take a screen shot or a recording of gameplay and see the debug elements as if you were…