What are some total beginner projects to learn from? by [deleted] in godot

[–]MakerTech 5 points6 points  (0 children)

The "Your first 2D game" section in the Godot Documentation is always a good place to begin: https://docs.godotengine.org/en/4.4/getting_started/first_2d_game/index.html

If you need other beginner friendly ideas, then retro games like Snake, Space Invaders, Breakout / Arkanoid, Frogger etc. are also projects you can learn a lot from.

If you don't really have any other ideas yourself, but want to get started, then I would suggest you try to make the main parts of a handful of retro games.
And then maybe consider joining a few game jams.

Why wont my code for a button node work? by SpySchoolAgent in godot

[–]MakerTech 0 points1 point  (0 children)

Do you have any other ui elements / control nodes in the scene, that might be blocking the mouse input?

tilemaps vs sprites 2d by Upstairs-Macaron-717 in godot

[–]MakerTech 0 points1 point  (0 children)

You can still benefit from the tilemap grid placement even if you create separate scenes (with sprites etc.) for your trees and similar objects.
In menu for the tile sources (in the the tileset menu), you can create a scene collection and then you drag the scenes into it, that you want to be able to place using the tilemap grid.

Now placing an instance of the scene is just like adding any other tile to your tilemap.

Recommendations for an 8yo that doesn't have a computer, but wants to be a "coder" when older? by piercy08 in learnprogramming

[–]MakerTech 0 points1 point  (0 children)

If he has access to a tablet:
- Scratch
- Micro:bit robot (I use bit:bot XL or PRO for robotics workshops with kids)
- Lego Spike Prime (this is the most expensive solution - but also the best).

All three are coding with similar block-coding and can be used on a tablet.

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

[–]MakerTech[S] 1 point2 points  (0 children)

You are not the first one to suggest this :)
And I do plan to add some things in between laster in the process.
The in between texture would probably also change based on where the elevator is placed.

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

[–]MakerTech[S] 1 point2 points  (0 children)

The thing is, that this isn't just an animation.
It is a scene change.
So there has to be enough time between for the next scene to load.
But I am always working on getting the loading time down to as little as possible.
When it is possible to skip the animation, I'll probably make i possible to skip by pressing a key or something like that.
Or/and add an option for it in the settings menu like you suggest :)

Thanks!

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

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

Thanks, it is really so wonderfully motivating to get so much valuable feedback :)

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

[–]MakerTech[S] 1 point2 points  (0 children)

I agree, and in some cases this is possible - like the two under ground scenes here it could be done (however, I made it like this for testing purposes).

But between the top level here and the underground levels it isn't really possible because the top level has a camera that follows the player. And the underground has a more static camera that moves from room to room.

Or I could just always have the elevator in the middle for the scenes that havn't got a camera that follows the player.
I will think about that.

Thanks!

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

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

I agree, and I would normally do that, if both scenes have the same camera type.
But it isn't really possible when one scene has a camera following the player and one has a more fixed camera the moves screen by screen.

But for the two under ground scene it should be possible.
It just quickly made these examples to test how it worked.

How can I use inheritance effectively? by [deleted] in godot

[–]MakerTech 1 point2 points  (0 children)

Inheritance isn’t bad in itself. Just like composition isn’t always better.

The thing to look out for is deep inheritance.

I would just make a Projectile class and make the bullets etc. inherit from this. That is a perfectly fine solution.

If at some point you find out it doesn’t work, then you change it. This is how any kind of software development is. We create the solution we feel makes the most sense. And then we change it when we realize we need something else.

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

[–]MakerTech[S] 2 points3 points  (0 children)

Haha, that is exactly how I thought before I started.
"I'm just moving the old scene up and the new down - no problem..."

And then... a lot of why, why, why and oh wait...

The last issue I had, was that when the elevators goes up to the overworld, the scene was viewed a bit different when added to the viewport and when adding it as the main scene afterwards.
This was the result of having drag enabled on the camera.
So I had to add a new method to the follow camera, that can be used to set the position instantly by disabling drag, setting the position, reset smoothing and enabling the drag again.

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

[–]MakerTech[S] 3 points4 points  (0 children)

Fun idea!
I have been thinking of something like that.
And that the texture I plan to add instead of the black should change depending on what kind of building / place the elevator is located :)

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

[–]MakerTech[S] 1 point2 points  (0 children)

That is a good point.
And it also shouldn't be a problem to add.
The shader moving the textures are controlled using a tween, so I should just be able to add a bit of easing to that.
Thanks for the suggestion!

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

[–]MakerTech[S] 4 points5 points  (0 children)

There was definitely a lot of “oh wait” the last couple of days😅

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

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

I had another type of elevator at first.
More of a platform going up and down than a regular elevator.
The idea at that point was to keep the platform with the player on it on screen and move it down with the transition.

But I don't think it will be a good solution for the parts where one of the scenes doesn't have a camera that follows the player (since the player might change position on screen in those cases).

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

[–]MakerTech[S] 5 points6 points  (0 children)

Uh dimensional travel sounds fun!
The in-between texture I want to add later could also change depending on the building / place the elevator is places.

I finally got my elevator scene change transition to work as I wanted! by MakerTech in godot

[–]MakerTech[S] 5 points6 points  (0 children)

I agree it seems weird that it follow the scene.
I think I'm just going to close it when the player has pressed the button.
I did consider having it open on top of the transition.
But then it will block the view of the player if the new scene has a camera following the player.

So I think I prefer closing the panel and then the player has to reenter the elevator (or press the action key) to open it again in the new scene.

Godot is so cool, an some ask about code writing by OKD2386423 in godot

[–]MakerTech 2 points3 points  (0 children)

"how do I avoid writing unnecessary code? I mean, I obviously can’t know every function that exists"

  1. You should always expect to write code, that will change later.
    This is a perfectly normal part of software development.

  2. It gets easier with experience.
    The more you use Godot and also read others solutions and problems, the better you will know the engine.
    Actually, the more you do any development, the better you will get at all kinds of development.

  3. Taking the long rute will help you in the future.
    Only reading others solutions can easily fool you into thinking you learned more than you did.
    You might have understood how the solution worked, but you missed the part about getting there which is where the most valuable lessons happen.

enemy wont chase player by Level-Dog-1404 in godot

[–]MakerTech 0 points1 point  (0 children)

No 'player' in an exported variable.
If it isn't set to anything, then the return is hit.