How to Make Collectable Objects in Godot 4 (coins, apples, etc)

preview_player
Показать описание
Apples, Coins, Blocks, anything.. it doesn't matter in this Godot 4 tutorial I teach step by step how to create collectable objects for your games. Collectable objects make your game much more engaging and entertaining!

----------------------------------------------------------

Thank you so much for watching I really hope this video helped.

if you did enjoy or this video was helpful then all i ask is if you could please go and click that subscribe button to help out the channel. It means so much and I love your feedback in the comments. If you are having any issues with the code talked about in the video then please let me know in the comments and I will be for sure to get back to you soon. Again thanks so much and I would love to see you again!

have a great rest of you day and of course be safe :)

- thanks DevWorm,

----------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

You are definitely getting better at this. Your channel is incredibly valuable, please keep going. Some suggestions on how to improve: take a note of how Clear Code teaches in their video "The ultimate introduction to Godot 4": 1. the state the problem or motivation for wanting to do something, 2. they tell what approach they are going to use 3. they show the approach 4. they show any potential problems that arise from the approach 5. they describe the reason why said problem arose 6. they fix the problem.

Notice how you tend to skip phases 1 and 2, and that makes it sometimes difficult to follow.

PunCala
Автор

Thank you so much for the tutorials! I'm excited for the next one. I also love your quick (but still clear) pace. I often find myself zoning out when other tutorials move so slowly.

akiameaart
Автор

If you're having problem with apples not spawning (with timer), you probably written state == "apples" instead of state = "apples" in func _on_growth_timer_timeout():

meltrop
Автор

Another great episode. I'm so glad you decided to make a survival game tutorial. I have been wanting to make a survival game my self and this will be a great help

HippocritterXD
Автор

I'm really enjoying following along.

One small issue that's probably more to do with the Godot UI and my age than it is your teaching... I find that sometimes you click through a series of Godot UI controls quickly and I have to rewind 2-3 times to see where you went and follow along. Is it possible for you to better show where you are clicking in the Godot UI so it's super clear? It should only be needed the first time through a given process in each video for me, once we're repeating things I'm good.

One thing I find really good in your videos is that you don't hide your mistakes. Explaining your mistakes and how you fix them is incredibly valuable. Thank you.

Hades
Автор

Across multiple tutorials and engines, I don't think I've ever watched any tutorials as helpful as yours have been to me, by far the easiest to takes notes and branch off of. Thank you very much for your hard work!!

RXBeetle
Автор

for those who were unable to execute the animation of apples disappearing from the tree: in the signals connect


and


instead of


and


Note: do not rename in the script, disconnect the signal and reconnect again the right way.

FOX_F.S
Автор

Your teaching style is really working well with me,

I did spend a solid hour swearing at my PC because i had a has. instead of a has_

So that was fun :>

But yeah man your pace and ability to create + answer side notes
makes it a lot easier to understand and piece the dots together of why this would work and for what reason would i use it.

So yeah, Thankyou.
Youre the first tutorial producer that matches my learning style.

Solace
Автор

Hello, following all the steps when I get to minute 9.20, which is the time to see that the trees are growing apples, it doesn't work for me, everything is correct and I have followed everything step by step, but it doesn't work, what can I do? be the problem?

adriilorenzo_
Автор

awesome Dev, ill be watching this tomarrow, thank you! Well done! ✌

Symbiote.
Автор

thankfully, had no errors or visual issues for this video. Only thing I noticed was that you went a little too fast in the entire process of adding stuff, coding, switching immediately to another script, etc. But it's no big deal, I can deal with just pausing and rewinding :) Keep up the good work! I am definitely enjoying this series! :D I hope I can incorporate this with making a mining system.

I would just have to change the Harvesting part to mining (adding the animation for mining with a pickaxe, and coding in the logic with how many hits it takes to break the ore with whatever pickaxe type I'm using).

tomoyaokazaki
Автор

could you release the script files somewhere so we can read through them?

fiskvik
Автор

If your having trouble with the has_method("player") line. you can test its by putting a print statement right after. i found the using has_signal("player") works better is you add

func _ready():
add_user_signal("player")


to the player script

I have no idea how has_method works but this seems to be more versatile anyway.

duncanbrown
Автор

I like this tutorial series as I am coming over to godot from unity and i'm unfamiliar with how everything works here.
just a small comment:
The fade animation does not need to have defined a position and rotation track as it should fade regardless. Since the apple will have played the "fallingfromtree" animation already, it will fade at the position it ended the previous animation at.

balderkjs
Автор

instead of typing res:// at 10:57 you can click and drag the scene from the filesystem and it will add the file path in the line of code automatically

cd
Автор

I am following it and i am gonna use the things that are necessary for my game thanks for the video . I appreciate it man thanks. :)

Programming_Of_All
Автор

great vid . completing ur tutorials 1 by 1 :D

ОЛДЫ-ОбществоЛюбителейДоистори
Автор

I keep having an error with infinitley spawning apples, not sure why.

katiescape
Автор

These are so good! Can you do a video on a leveling/Job/Class system with xp?

natebuckwell
Автор

Very helpful video I waited here. Nice!

FilenameNULL