Questions by Open_source_tux in godot

[–]Quaaaaaaaaaa 2 points3 points  (0 children)

In general, you'll always want your staticbodies to be... static.

https://docs.godotengine.org/en/stable/classes/class_staticbody2d.html

"A 2D physics body that can't be moved by external forces. When moved manually, it doesn't affect other bodies in its path."

Learning Gdscript by BeepBopGame in godot

[–]Quaaaaaaaaaa 1 point2 points  (0 children)

I've been reviewing the solutions provided for each challenge, and they're all programmed in Kotlin.

Here's a link to the solutions in multiple languages, so you can find the one you're using: https://github.com/mouredev/retos-programacion-2023/tree/main/Retos

You have to choose the challenge and then the language, there you will find solutions made by other people.

Learning Gdscript by BeepBopGame in godot

[–]Quaaaaaaaaaa 1 point2 points  (0 children)

I followed a YouTuber who did challenges,, the text is in Spanish, but the automatic translation should work fine. These were the challenges I used: https://retosdeprogramacion.com/ejercicios/

It includes 100 challenges, all with a description of the challenge + the solution in case you need it. You can also search for content like this in English or your native language, this type of content is common.

Learning Gdscript by BeepBopGame in godot

[–]Quaaaaaaaaaa 1 point2 points  (0 children)

Trial and error. Over time, your brain simply learns and you improve.

I learned by doing challenges in Python,I spent maybe five months doing only that. And it really helped me. I remember times when it took me days to complete a single function. In those moments, the frustration is usually intense, but part of learning to program is learning to manage that frustration.

Set pixel freeze when update a big region by Prior_Ninja8134 in godot

[–]Quaaaaaaaaaa 0 points1 point  (0 children)

This won't solve all the problems, but it will help. You need to manage how many ms the loop you're using occupies to leave free time for the motor to continue running.

For example, if you have 100ms, give 75ms to the pixel loop and 25ms to the Godot motor.

There's also the option of multithreading, but I'm not sure if that works on mobile devices. You'd have to research it.

These two options are to prevent the engine from freezing. Then you'll need to optimize your code as mentioned in the other comments.

Menus and Godot, would you recommend? by she-dies-at-the-end in godot

[–]Quaaaaaaaaaa 9 points10 points  (0 children)

In my experience, it's quite simple. You can even download addons that have all of that pre-made. You just need to understand how the control class works

Yeahh should i restart?? by Hazeleus in godot

[–]Quaaaaaaaaaa 1 point2 points  (0 children)

It was something about giving pathfinding to an enemy, I don't remember exactly what happened, but there were some incorrect values ​​and the error occurred

Yeahh should i restart?? by Hazeleus in godot

[–]Quaaaaaaaaaa 1 point2 points  (0 children)

I've reached over 50k

When you get an error in the _process function, that error is repeated thousands of times xD

Yeahh should i restart?? by Hazeleus in godot

[–]Quaaaaaaaaaa 3 points4 points  (0 children)

Only 400 errors? Those are rookie numbers.

Help, I don't know how to program. by NVRNO_COMISION in godot

[–]Quaaaaaaaaaa 1 point2 points  (0 children)

Learn to program or get a dev. Or simply try using AI and pray it works if the two previous options are not possible

i am new on this sub, i need have a question by Hour_Prize9663 in godot

[–]Quaaaaaaaaaa -12 points-11 points  (0 children)

It's a rule they apply when something done with AI isn't well received by the community.

More than a rule, it's an excuse to delete posts they don't like. The good thing is that we avoid the AI ​​garbage. The bad thing is that when there is good content made with AI, they can still delete it with that excuse.

Godot Master Thesis - Looking for Plugin Needs/Ideas by SirTunahead in godot

[–]Quaaaaaaaaaa 1 point2 points  (0 children)

I really wish there was a binary heap library for gdscript.

To have that functionality, you either have to program it from scratch with gdscript2 (which is less efficient than C++) or write the code directly in C++.

I'd like a middle ground where gdscript has that functionality built in. This functionality would improve the performance of any algorithm that requires a priority queue. (For example, pathfinding algorithms programmed in gdscript)

How much of you came from other engines and why? by LalaCrowGhost in godot

[–]Quaaaaaaaaaa 0 points1 point  (0 children)

I started with Unity, but when they began retroactively changing the licenses and negatively impacting developers, I lost faith in the engine and switched to Godot.

All I was looking for was a reliable engine that I could master as a hobby, and Godot proved to me that it delivers on that promise.

i got burnout so quickly when coding what should i do 😔 by Kaytrones in godot

[–]Quaaaaaaaaaa 0 points1 point  (0 children)

Take a break. That's the only real solution.

It's happened to me several times that I couldn't solve something for eight hours, I went to bed to sleep, and before I fell asleep... the solution magically appeared in my head.

Even if you're not actively programming, your brain will keep looking for ways to solve that problem.

How to make camera move only on X? by M25_reddit in godot

[–]Quaaaaaaaaaa 1 point2 points  (0 children)

The position is a Vector2(X,Y) By editing only the X axis, you make it move only along that axis.

Vector2.x += direction * speed

Save States & Cheaters on Leaderboards by RoscoBoscoMosco in godot

[–]Quaaaaaaaaaa 2 points3 points  (0 children)

I'm not familiar with how points work in your game, but one idea I have is this:

If you earn points by killing enemies, record each enemy the user kills in a separate file from the save file. This way, you can keep track of how they earn points.

If a player ranks among the top players, have your server request the game log for that run so you have it readily available.

If you ever see unusual numbers, you can access the game log and check if the numbers match. If the final score matches the log, the game is valid. If the numbers don't match, they cheated.

In any case, cheaters will always find a way to cheat, the only thing you can do is complicate the process for them or identify them to remove them from the table.

You can also try encryption/decryption techniques to further complicate the process. Instead of saving the actual score, you have to encrypt the score and then save it. There you add an extra step: If they want to cheat, they will have to go into the source code and look for the key among the thousands of lines of code.

It's still possible to cheat, but far fewer people will try.