Good, now I'm gonna make a gun that shoots a gun that shoots a bow and that bow shoots a bullet.
@klembokableКүн бұрын
Ty this is like coding asmr but without the obnoxious person whispering and crinkling shit
@FlamebambooКүн бұрын
Can you make dragon enemy do similiar like this? I want the dragon to instantiate fire projectiles
@DevDrache19 сағат бұрын
nice idea, why didn't i think of that 🤔 I put it on my list, but for 3d. This video gives you everything you need. You just need to implement everything from the gun right at the enemy. So the enemy is the player and the gun all in one.
@WASDKeysStudioКүн бұрын
your channel is a blessing from god
@bensmit3204Күн бұрын
Cool 👍
@grzegorzpedrycz26302 күн бұрын
Thanks for sharing this !
@jaylu96883 күн бұрын
Thank you! This video helps me a lot!
@k0sc3 күн бұрын
Hello, why if i drag node into code, for example "gun" into player's code I got only $gun instead of @onready var gun = $gun ?
@DevDrache3 күн бұрын
you have to hold ctrl when you drop it
@afrancis74753 күн бұрын
No annoying intro's, no overhyped person, pure tutorial in a compact video. Thank you.
@92LucAC4 күн бұрын
Great video!
@user-vg2xh5id6q5 күн бұрын
Hello, I want to learn the process of farming (drop something) in godot 4 🙌🔥. Thanks 🙏
@Flamebamboo5 күн бұрын
What can i change to make ig work on platformers
@DevDrache5 күн бұрын
You only need to adjust the player movement, i.e. remove y axis movement and add gravity instead. The easiest way is to use the CharacterBody2D built-in code template and transfer the following to it: if Input.is_action_pressed(“attack”): gun.shoot() ... if direction != Vector2.ZERO: gun.setup_direction(direction) ... animation() In the animation function you can remove all .y lines
@AstraReall5 күн бұрын
Hello , omg i like it , i start the developpement of games , pls tuto for direction with cursor
@DevDrache5 күн бұрын
thanks, I put it in my list :)
@oni_factory60475 күн бұрын
No Joke.. thank you so much! Your Channel is a blessing.
@DevDrache5 күн бұрын
thank you for your kind words
@Zonatrol5 күн бұрын
i dont know if i miss something in minute 3:55 because there the camera kinda hides it ,but your bag gets converted into a canvas layer out of nowere, i get the parse error standalone lambdas cannot be accesed on the player func to get the item. Ty for the tutorial and hope you can my most probably a stupid error :D
@DevDrache5 күн бұрын
oh sorry, I made a cutting mistake. The main node "Bag" should be an Canvas Layer. You can see it at the top of the bag code, it says "extends CanvasLayer" all the time. So to fix this, you have to change the Bag node with an right click => change node to an CanvasLayer. If there is still an error, please copy it in here :)
@Zonatrol5 күн бұрын
@@DevDrache Thx a lot,the error was by a stupid identation mistake at the end!,but i also changed it to a canvasLayer,ty so much for the answer and for the tutorial,you said more to me with no words in the video than most of the tutorials with thousands of words .
@MulmVerbot6 күн бұрын
Thank you, your Video was better than any AI!
@mrstoon95246 күн бұрын
can i run godot with gt 710 because i have i5 gen 4 and doesn't open if gt 710 can open it i will buy it
@DevDrache6 күн бұрын
does the editor or the game not open? Because it should be possible to open the editor with the i5. first of all, i am not a hardware expert. so be careful with my following statement :) A gt 710 should be enough for 2D and simple 3D games.
@mrstoon95245 күн бұрын
@@DevDrache thank you
@ani74176 күн бұрын
Nice. Thanks!
@Necrincito6 күн бұрын
Please tutorial 2d platform game, (the player cuts a tree), (the tree shakes due to the cut), (put the number of times the action is performed to cut down the tree), (example: large tree 5 times, medium tree 3, small tree 2) , (when you reach the maximum number of times the tree falls in the animation), (and drop objects on the tree)
@Scallopro8 күн бұрын
how do you subtract and add health in code? pls answer it will help alot
@DevDrache7 күн бұрын
When your player (or enemy) receives damage/healing, you will also use the "change_health" func from the healthbar code. Something like this: func take_damage(damage): $HealthBar.change_health(damage)
@Scallopro6 күн бұрын
@@DevDrache thanks :), now how do you link the healthbar's value to the player's health?
@DevDrache6 күн бұрын
add the following function to the healthbar code: func set_health_bar(maxHealth): healthBar1.max_value = maxHealth healthBar1.value = maxHealth healthBar2.max_value = maxHealth healthBar2.value = maxHealth
@Scallopro5 күн бұрын
@@DevDrache how will I call the set health bar function?
@DevDrache5 күн бұрын
Put it in the ready function of the player/enemy code. Like this: var health = 100 ... func _ready(): $HealthBar.set_health_bar(health)
@lukecoles20038 күн бұрын
You are a lifesaver. I'm planning an actiom rpg in the future and I had no idea how to make attack combos until now. :)
@celsladroma80488 күн бұрын
We have the same mouth where you and I start godot.. amazing you have now enum.. your using enum.. that was good.. but you don't know how to set it from fuct to var..
@DevDrache6 күн бұрын
what do you mean? Is there anything I can improve? let me know :)
@celsladroma80486 күн бұрын
@DevDrache i see you use alot elif.. thats good.. you thinking to much how to improve your code.. thats is greate.. but you just follow chatGPT in that way your energy will focus not on thinking in your code... code of chatGPT is randomize if your lucky you got good code...
@afrancis74754 күн бұрын
@@DevDrache No idea what drunk dude means but I'm glad you made the video. Keep it up!
@zeffofx8 күн бұрын
please make a stacking item counter tutorial. thank you in advance!
@DevDrache7 күн бұрын
ok, it's on the list :)
@nameless034989 күн бұрын
Can u help me in one thing, so that big bang attack animation and the attack travelling will be different but how do i connect those so that i can provide a smooth attack🥹
@DevDrache6 күн бұрын
I'm not sure I understand what you want to do. Do you want to let the energy ball fly forward to the enemy ?
@nameless034986 күн бұрын
@@DevDrache yes but today's video solve it Thanks a lot 🥹
@littledemo36059 күн бұрын
make joystick too not only buttons.
@hagarius199110 күн бұрын
Could you also make a tutorial on how to implement a stacking option with a number count on the side? That would be awesome! Great Series btw.
@DevDrache7 күн бұрын
sure, I'll put it on my list :)
@Shannon471010 күн бұрын
Shouldn’t you also check that you are playing the block animation before pausing it? As it is now it seems that if you started to block on frame 6 of any animation it would pause that animation instead.
@DevDrache7 күн бұрын
yup, I forgot that. thanks for pointing that out. In the frame if state there should be add: && animated_sprite_2d.animation == "block"
@Shannon47106 күн бұрын
@@DevDrache Thank you for replying! I really like this video format. Short and simple. Great to see an example of how something could be done without getting stuck in what can feel like like endless tutorials. I will definitively be watching more of your videos. Thank you for making them!
@GlazedRay10 күн бұрын
wow , diamond in the rough channel, cheers for the vids! earned a new sub foresure!
@DevDrache7 күн бұрын
thank you
@short10life10 күн бұрын
❤❤ thank you
@tamilcartoontv72011 күн бұрын
Thanks for the video but i feel like creating Mesh Library and using it in GridMap can be better approach..
@DevDrache7 күн бұрын
You're right. It doesn't hurt to know the obvious way to start immediately
@rifkyriezz293611 күн бұрын
Thanks for the tutorial. May I have a request. Can you make, a tutorial about event. When our character stop on some where, then the event happened.
@DevDrache7 күн бұрын
Yes, sure. What exactly do you have in mind for an event? An event where the player has to select something in the Ui? or an event where an area is shown (the question here is whether everything should move or stop)?
@vartem12311 күн бұрын
Even though some of the lessons are not actual for me, I find your content very useful!
@vartem12311 күн бұрын
KZfaq kind of missing godot strategy guides. Is it not an optimal genre for the engine?
@DevDrache11 күн бұрын
thank you :) do you mean guides for strategy games?
@vartem12311 күн бұрын
@@DevDrache yes, I mean some basic stuff. It is 1000+ platformer guides, 100+ RPG guides and really low number of strategy game guides on godot
@aopen13011 күн бұрын
Love the video guide as always. I was working through your code near the end 4:39 You gave me the biggest aphasia panic with the word "Strenght" in line 36 instead of *strength* . I kept mistyping in the code so it would not run haha.
@DevDrache11 күн бұрын
thank you and sorry for your pain because of my misspelling 🙈
@nameless0349813 күн бұрын
It is good but kinda look weird it just look like they got teleported instant of blast away, you can add a little jump animation in between. By the way nice work need it up💙
@DevDrache11 күн бұрын
oh yes, you're right. thanks for the hint. I should have split the knockback effect over a few frames.
@LucasPereira-pu6cq13 күн бұрын
Thanks. Great tutorial
@matiturock13 күн бұрын
Can use for this case a NinePatchContainer vs PanelContainer? to keep de border-radius in diferent sizes.
@DevDrache11 күн бұрын
yes, but then the size must be adjusted by code. I chose the panel container because it adjusts itself based on the children. The disadvantage, as you have already seen, is that it looks a little ugly.
@matiturock13 күн бұрын
Muy buenos videos, la verdad están relajantes.
@celsladroma804814 күн бұрын
omg your using the same asset with me... i guess we are same.. so we should collaborate with
@Flamebamboo15 күн бұрын
can you please make a tutorial how to make advance enemy state machine in Godot platformer
@DevDrache14 күн бұрын
sure, i'll put it on my list :)
@user-os8fs6oz2m15 күн бұрын
DamageLabelIndicator Block code ??
@DevDrache15 күн бұрын
In this video I show you how to create the damage label indicator: kzfaq.info/get/bejne/q596as2Znb24h58.html For block i add a line at the top of the _get_label_text function. If damage == 0: return "block"
@evandesdelcay97115 күн бұрын
This will also block arrows that hit you in the back?
@DevDrache15 күн бұрын
yes, it blocks all attacks no matter where they come from. To make it more precise, you need to check which side the attack is coming from.
@67steinip15 күн бұрын
@@DevDrache you could also just make the hitbox precise.. so if its just around the shield its a block so anything coming from behind wud be a hit right.. similar to AS2 in Flash back in the day :P
@DevDrache14 күн бұрын
yes of course. There are multiple ways to do it. it mostly depends on what the creator wants to do :)
@Flamebamboo16 күн бұрын
For some reason my dash effects goes below the player
@DevDrache15 күн бұрын
Could it be that your sprite node is not at position (0,0)? The dash effect gets the position from the character body node.
@Flamebamboo16 күн бұрын
how do you add those environment particles? pls share
@DevDrache15 күн бұрын
With the GPUParticles2D Node. It's quite fun to create dynamic effects with it. I'll put it on my list :)
@angmarKW16 күн бұрын
is there a way to make the egg bounce on walls like yoshi's egg? Btw great video, helped a lot!
@DevDrache15 күн бұрын
sure, for this you have to use the move_and_collide anstatt move_and_slide. if you collide the move_and_collide return information absout the collision. You need a part of the information to put it in the velocity.bounce() function. After that you can decrease the bounce effect with each bounce like this velocity *= 0.8. I'll put it on my list of video ideas :)
@fabianmunoz85118 күн бұрын
bastante interesante, sencillo y relajante de ver
@fabianmunoz85118 күн бұрын
muy bueno, nice video!!
@dirtii970119 күн бұрын
I would love to see you implement a way to add slot specific items to the equipmentLeft and Right panel and perhaps making those slots only allow a specific item type, and then linking those stats to a player object <3
@DevDrache18 күн бұрын
I'll think about it, actually there wasn't even a second part planned and now I'm already at part 3 🙈 You can do both by checking in the _can_drop_data if the item is allowed for this inventory slot For this, I would first create a dict at the top of the script to easily summarize all possibilities, e.g. { "EquipmentRight1": ["shield", "sword", "axe", ...], "EquipmentLeft1": ["sword", "axe", ...], .... } Then the items need a new @export variable to represent the different types (shield, sword, axe, ...) And now we can make the query in the _can_drop_data function. First we feed the dict for this we need the inventory type + slot number (targetSlotNode.get_parent().name + targetSlotNode.name.split("Slot")[1]). This gives us the list of permitted item types. Now only allow the drop if the item type of the SlotNode from the data agrument is present in this list.
@celsladroma804819 күн бұрын
Hello ma friend. Your working on top down RPG? last time we chat I'm still noob about programming so I relearn everything about code.. Your so good now this is the things I want to learn too but I'm working on 2D platformer.. Where you from? I think this is good thing we build alliance because I'm solo developer in the future I'm going to create one biggest game just like Hollow night.. right now I can code more than 500 lines of code but it take me to relearn everything about coding..