How to Add Interaction in Godot 3

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025
  • Learn how to make your fps controller interact with the game world. In this video learn how to add interactive objects like buttons, doors, elevators and NPCs to your fps game using raycasts, gd script and a lil bit of magic!
    Links:
    Link to the project:
    github.com/nag...
    Rayuse's video:
    • Moving Platforms No Co...
    If you have questions, comment them down below and I'll try my best to help you!
    If you enjoyed the video, make sure to drink water!
    Do you want to support my content? Consider buying me a coffee! It helps me stay motivated at making more useful content for you!
    ko-fi.com/nagidev
    Music: LoewFli - / @loewfii5674
    #godot #godotengine #tutorial #tutorials #fps #firstpersonshooter #interaction

ความคิดเห็น • 182

  • @SpringDavid
    @SpringDavid ปีที่แล้ว +86

    Hey, for anyone new to godot using a newer version (like me), in case it looks like the code isnt working after some moment in the video, try to check if the code hasnt changed how some things are called.
    Heres some examples:
    -"export" is written as "@export" now
    -"InputMap.get_action_list" became "InputMap.action_get_events"
    -"scancode" now is "keycode" (yes it applies to "get_scancode_string" too)
    -"is_action_just_pressed" didnt change name (at least not in the version I'm using)

    • @koresaliva
      @koresaliva ปีที่แล้ว +5

      Appreciated!

    • @maks-yn5xg
      @maks-yn5xg ปีที่แล้ว +18

      also, if your interact input accepts physical input (like "E"), you have to scan for physcal keycode, like so:
      keyname = OS.get_keycode_string(action.physical_keycode)

    • @TheRetroMax
      @TheRetroMax ปีที่แล้ว +3

      Another thing, if you guys are trying to set the path following platform in the tween_property it's not
      "unit_offset" anymore, it's "progress_ratio"

    • @binyot5505
      @binyot5505 ปีที่แล้ว +2

      @@maks-yn5xg for some reason it shows just "[]" instead of the key "E"

    • @maks-yn5xg
      @maks-yn5xg ปีที่แล้ว

      @@binyot5505 probably they changed it again in godot 4.2, so maybe look into change log for anything about inputs

  • @MattGibbard
    @MattGibbard 2 ปีที่แล้ว +38

    This tutorial is really awesome. Your humor mixed with learning keeps it interesting! Please make more!

  • @h3nn359
    @h3nn359 2 ปีที่แล้ว +8

    Really like your humor, please go on and do more of these tutorials! :)

  • @KevinNijmeijer
    @KevinNijmeijer 2 ปีที่แล้ว +6

    Well explained, good pace, scalable, humorous. I love it!

  • @awfyboy
    @awfyboy 2 ปีที่แล้ว +15

    Very nice tutorial. I like how scalable and efficient this is for larger games. Never knew you can define custom class names :D

  • @qevnine8923
    @qevnine8923 2 ปีที่แล้ว +8

    dude keep making these videos, you're doing incredibly well

  • @JoanTheToad
    @JoanTheToad ปีที่แล้ว +2

    Your tutorials are not only informative, as they are absolutely hilarious!

    • @NagiDev
      @NagiDev  ปีที่แล้ว +2

      i try... to make them informative, I mean

  • @jazpaa
    @jazpaa ปีที่แล้ว +1

    Fantastic tutorial. Just what I needed and I've been working for hours to learn how to do this. Thank you so much!

  • @GaryParkin
    @GaryParkin ปีที่แล้ว +2

    I really enjoyed this tutorial. Thank you so much Nagi. I'm working with Godot 4 so I had to look up and translate a few things but it's fun. You're a good instructor.

    • @NagiDev
      @NagiDev  ปีที่แล้ว +1

      Thanks that means a lot. Also it means I'm doing something right! I'll be posting Godot 4 tutorials soon, working on a different type of video right now so stay tuned :)

    • @GaryParkin
      @GaryParkin ปีที่แล้ว +1

      @@NagiDev Yes, thank you. I can't for the life of me figure out how to get the interact Key to return to the player in Godot 4. (Sub'd btw) I need to slow down your tutorials to 75% and they work great. Especially how you created the door with the bones.

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      @@GaryParkin Can you please explain what you mean by making the interact key return to the player?

    • @GaryParkin
      @GaryParkin ปีที่แล้ว +1

      @@NagiDev The code in get_prompt around 3:20 where you use InputMap.action_get_events(prompt_action). I can get the key by using InputMap.action_get_events( actions ), but OS.get_scancode_string is no longer valid. It doesn't connect to any variable coming from InputMap.
      I have a question pending in the forms. The closest I've gotten is var actions = InputMap.get_actions().find(prompt_action)

  • @Aymanastic
    @Aymanastic 2 ปีที่แล้ว +3

    i like ur videos, im a new sub from the fps mouvement video, continue : )

  • @johnwillson1281
    @johnwillson1281 ปีที่แล้ว +1

    One of the best paced video tutorials I've ever seen. Thank you for respecting the viewers time. It allows people like me who used other engines to quickly pickup what the new function names, general behaviors, and workflows are without having to lug through all the zero-to-hero overhead the docs and other tutorials do. Even with the tutorial being for Godot 3, its taken less time to translate it to Godot 4 than it would to listen to most others drone on about its principles, long wind up jokes, and uncut clicking and loading.

  • @shawniac
    @shawniac ปีที่แล้ว +1

    Cool Tutorial, and love that funny and laid-back style of yours! Keep up that good work 😄

  • @obedabit280
    @obedabit280 2 ปีที่แล้ว +1

    Amazing Godot tutorial, I have not see something like this for a long time

  • @funeralman9712
    @funeralman9712 2 ปีที่แล้ว +2

    I have watched 30 seconds and let me tell you. Your video editing hilarious and your English is very good nice tutorial!

  • @Delebthis
    @Delebthis 2 ปีที่แล้ว +2

    Awesome video and helped clear many things for me as a Godot beginner. Thanks

  • @zoxmegrowthfunda4414
    @zoxmegrowthfunda4414 2 ปีที่แล้ว +1

    bro you deserve 100k atleast... thank for such an amazing video
    really i was out of my mind and then i see this it amaze me.. thank for tutorial and sharing you knowledge
    with us i really means a lot (and also i dont comment on some one's video you are the first one )thank you

  • @KaletheQuick
    @KaletheQuick 2 ปีที่แล้ว +1

    Looking good my man! Can't wait for that ice wall tutorial! :D

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว

      One ice wall tutorial coming right up!

  • @pixelgoose98
    @pixelgoose98 4 หลายเดือนก่อน +2

    THIS WAS SOOOOO HELPFULLLLLL

  • @dueddel
    @dueddel 2 ปีที่แล้ว +3

    I did interact with the subscribe button. Entertaining tutorial format.👍

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว +1

      Did it change color?? (Asking for research purposes 🧐)

    • @dueddel
      @dueddel 2 ปีที่แล้ว +1

      @@NagiDev It did! Unbelievable, but it did! It not only changed the color, it also changed its label - slightly at least.
      I am very impressed by that. Blew my mind. Made POOOF in my head.
      Much subscribe. Very liked. So upvoted. Just wow.

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว +1

      @@dueddel I think we should share this magic with others! Time to bamboozle the world (in a good way)!

  • @rishabhkohli278
    @rishabhkohli278 2 ปีที่แล้ว +2

    Why is your channel so underrated!?

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว

      Maybe because of my inconsistent upload schedule

  • @tzerland
    @tzerland 2 ปีที่แล้ว +4

    🙏 very good tutorial

  • @theomins
    @theomins 2 ปีที่แล้ว +3

    Very nice tutorial, really a good work!

  • @GoticaArcana
    @GoticaArcana 2 ปีที่แล้ว +6

    Very useful video, keep the good work.
    One aspect in Godot and in 3d I'm personally struggling of is light, in particular interior light.
    I find very difficult set the enviroment light and in case of rooms the interior light.

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว +3

      I'm glad you found the video useful. As for interior lighting, even I'm a beginner at that. I'll try to post something if I get it right, but for now all I can suggest you is to play around with every setting in the environment settings as possible ( at least that's what I do ).

  • @bitbraindev
    @bitbraindev 2 ปีที่แล้ว +3

    Amazing!

  • @MaydayAcademy
    @MaydayAcademy ปีที่แล้ว +1

    Love you tutorials ♥

  • @fragajjia
    @fragajjia 2 ปีที่แล้ว +1

    Good stuff, thanks. I, for one, welcome the godot4 stuff.

  • @simpleclearviews108
    @simpleclearviews108 ปีที่แล้ว +1

    This is really awesome tutorial

  • @AeroZone
    @AeroZone 2 ปีที่แล้ว +3

    I don't use Godot but this is comedy gold! nice tutorial

    • @VickylanceMedia
      @VickylanceMedia 2 ปีที่แล้ว

      which engine do you use?

    • @AeroZone
      @AeroZone 2 ปีที่แล้ว

      @@VickylanceMedia well I use max2d for mobile but I'm thinking of moving to GDevelop

    • @VickylanceMedia
      @VickylanceMedia 2 ปีที่แล้ว

      @@AeroZone Nice never heard of Max2d interesting

    • @AeroZone
      @AeroZone 2 ปีที่แล้ว

      Yea it's a really cool app for mobile devs

  • @toddhunt2059
    @toddhunt2059 ปีที่แล้ว

    I had been chilling for a while🤣

  • @AshmeetDhaliwal
    @AshmeetDhaliwal 8 หลายเดือนก่อน +1

    Really help full

  • @KyleRassweiler
    @KyleRassweiler ปีที่แล้ว +10

    For anyone using Godot 4:
    - Instead of "InputMap.get_action_list(action)" use "InputMap.action_get_events(action)"
    - Instead of action.scancode use "key_name = OS.get_keycode_string(action.physical_keycode)"

  • @indieology7336
    @indieology7336 2 ปีที่แล้ว +3

    Awesome!

  • @crabbite3093
    @crabbite3093 2 ปีที่แล้ว +1

    drink your cookies and eat your milk, perfect tutorial only a little fast and one time you didn't said what you did and I got a mistake but i found it :D

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว +1

      Okay, I'm still pretty new to this. I'll try to make less mistakes next video! Thanks!

  • @gen.reaper9000
    @gen.reaper9000 ปีที่แล้ว +1

    You are awesome. Thank you

  • @reuwdev
    @reuwdev 2 ปีที่แล้ว +1

    THANK YOU SO FUCKING MUCH I WAS TRYING TO FIGURE THIS OUT LIKE ABOUT 2 HOURS

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว

      he he happy fo help!

  • @pengain4
    @pengain4 ปีที่แล้ว +1

    THB some (not all) jokes in the video were a bit irritation for me (maybe I'm too old for it).
    But this channel is definitely very underrated: great demonstration, polished results, simple explanations.
    Thanks. Will wait for more videos.

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      I know my jokes are bad and I try to keep them to the minimum. I'm glad folks are finding my videos useful and I'll try to post the next video asap.
      Cheers!

  • @popfizzy9597
    @popfizzy9597 ปีที่แล้ว +1

    please tell me u are still working on the fixed godot 4 vers of this vid, you are the only person that explains well and has what im looking for😭

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      I am lol

    • @popfizzy9597
      @popfizzy9597 ปีที่แล้ว

      @@NagiDev thank god 🙏🙏🙏

  • @TheOfficialReapsZ
    @TheOfficialReapsZ 2 ปีที่แล้ว +1

    Solid!

  • @mightyleonidy6166
    @mightyleonidy6166 9 หลายเดือนก่อน +3

    Hey Nagi! Thanks for this tutorial, but im having some difficulties with the Interactable type, i'm on version 4.2.2. it just says "could not find type "interactable" in the current scope . if you know how to fix this, please let me know. Thanks!
    Edit: Nvm, it somehow just worked lol. But now when I place my crosshair over my cube/button it doesn't say anything

  • @velavanvenkat1173
    @velavanvenkat1173 ปีที่แล้ว +1

    thank you bro

  • @f073stry5
    @f073stry5 ปีที่แล้ว +1

    can i make a suggestion you go really fast in these tutoirals and it makes it hard to follow sometimes i dont know if anyone else has the same issue but if you could slow it down just a bit that would be nice

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      Yeah, a few people have pointed that out and I've tried to slow down a little on my newer tutorials for Godot 4. Please let me know over in those videos if the speed still feels too fast. I'll keep on working on the speed of my tutorials.

  • @oliveseal2038
    @oliveseal2038 ปีที่แล้ว +1

    at 3:25 line 13 Im getting an error message "Static function "get_scancode_string()" not found in base "OS"." Does anyone have a fix. (I am using godot 4.0)

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      This tutorial was made for Godot 3, I'll be posting one for 4.0 soon

    • @Xeno-Morpehus
      @Xeno-Morpehus ปีที่แล้ว +3

      I've changed some of the strings / nodes etc. so you may need to update to your own project or to match the ones used by Nagi in the tutorial; hope this helps. Thanks to Nagi for a great tutorial and the humour, this was the only code I was able to get to work with a few tweaks, while trying to learn Godot 4, first week trying the engine or game making for that matter :D haven't been able to get the platform working in 4 yet as tween code needs updating, sure I'll figure it out.
      All thanks to Nagi (www.youtube.com/@NagiDev) for his tutorial, I just updated for Godot 4
      ####Interactable .gd - script
      extends StaticBody3D
      class_name Interactable
      signal interacted(body)
      #prompt message i.e. keymapping to press
      @export var prompt_message = "Interact"
      #Keymapping (Input mapping, project settings)
      @export var prompt_action = "Interact"
      func get_prompt():
      var key_name = ""
      for action in InputMap.action_get_events(prompt_action):
      if action is InputEventKey:
      key_name = OS.get_keycode_string(action.keycode)
      return prompt_message + "
      [" + key_name + "]"
      func interact(body):
      #Print to console for debugging - optional
      # print(body.name, " Interacted!")
      emit_signal("interacted", body)
      ####Doors.gd - script
      extends Node3D
      @export var open = false
      var playback = null
      func _ready():
      playback = $AnimationTree.get("parameters/playback")
      func toggle_door(_body):
      open = !open
      if open:
      playback.travel("DoorOpen")
      else:
      playback.travel("DoorClose")
      ####InteractRayCast3D - script
      extends RayCast3D
      @onready var prompt = $Prompt
      func _ready():
      add_exception(owner)
      func _physics_process(_delta):
      prompt.text = ""
      if is_colliding():
      var detected = get_collider()
      if detected is Interactable:
      prompt.text = detected.name
      prompt.text = detected.get_prompt()
      if Input.is_action_just_pressed(detected.prompt_action):
      detected.interact(owner)
      Note there are some compatibility updates required for 4.0 like updating 'extends nodes' to what you may have used, updating player.gd e.g. removing move_and_slide() arguments and updated functions. I'd created my own code at first but struggled with getting doors to work using alternative methods (different types of doors than the ones used in this tutorial but close enough for this guide to work with updates and without using bones.

    • @NagiDev
      @NagiDev  ปีที่แล้ว +1

      @@Xeno-Morpehus you are amazing!

    • @oliveseal2038
      @oliveseal2038 ปีที่แล้ว +1

      @@Xeno-Morpehus Thanks i was really stuck and this helped me

    • @kyouma7775
      @kyouma7775 ปีที่แล้ว +2

      @@Xeno-Morpehus you saved me, thanks man!

  • @golden_calf
    @golden_calf 9 หลายเดือนก่อน +1

    I have interacted with the like and subscribe buttons

  • @Abdel-Qader
    @Abdel-Qader 2 ปีที่แล้ว +1

    what do you think about 3D in godot !
    I like games like puppet combo games or fear to fathom
    do you think godot can handle this type of games !
    many say it will lag and bad performance
    so i really want to know what do you think !
    your tutorials are really helpful keep up

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว

      Looking at the gameplay of fear to fathom, I don't think you'll have any problem making a game like it. The only aspect I've seen Godot struggle in is handling a huge number of physics objects (pretty rare case for most game projects) and even that can be solved by using low level languages to handle those parts. So, yeah, go ahead and give Godot a try! You would have a lot of fun ;)

  • @sill.k8272
    @sill.k8272 ปีที่แล้ว

    HOW DID YOU CREATE TEXT, or that is 3d object?
    btw, god damn cool video editing, wow

  • @plainshades
    @plainshades 2 ปีที่แล้ว +1

    Pls how did you set up the lighting here. It looks simple and clean.

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว +1

      I just use an environment node and a directional light. Then I tweak a bunch of settings for both to get the look I like. You can look into the project to see what settings I change. Also, I change a few rendering options in the project settings.

    • @plainshades
      @plainshades 2 ปีที่แล้ว +1

      @@NagiDev Oh. Just realized the project was actually available to download. Thanks a bunch.

  • @BetaTester704
    @BetaTester704 ปีที่แล้ว +3

    Could you do one for godot 4?
    Its confusing now.

    • @NagiDev
      @NagiDev  ปีที่แล้ว +5

      Already on it, will post one soon

  • @ruumroom.
    @ruumroom. ปีที่แล้ว +1

    Hello i need some help!! i have been trying to find a way on how i can trigger the doalogue box when i collide with something can u please help me out or tell me how i can achieve that

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      Hey!
      You can add an Area node to the object with the CollisionShape slightly larger than the object's CollisionShape. Then trigger the dialog (dialog.start) whenever a bodyEntered signal is triggered on the Area node.

    • @ruumroom.
      @ruumroom. ปีที่แล้ว

      @@NagiDev I did but i seem to get the error “no dialogue data” also i had some other questions is there anyway i can reach i tried to on your twitter but it seems like i can’t dm you there

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      If you're trying to use the Dialogue Node addon like I did, I suggest you follow my tutorial on that. I think you haven't added the dialogue file through the inspector.

    • @ruumroom.
      @ruumroom. ปีที่แล้ว

      @@NagiDev yea i just noticed 😭😭😭 TYSM also one last question how can i trigger different starting nodes using one dialogue box or do i add different dialogue boxes

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      @@ruumroom. You can add any number of start nodes to one dialogue file, each must be assigned a unique ID. In the dialogue, while calling the start function, provide the ID of the start node you want to use. Example: start("MY_UNIQUE_ID")

  • @matiturock
    @matiturock 2 ปีที่แล้ว +1

    por favor, haz tutoriales de Godot 4! o una serie para un diario de desarrollo de juegos, de un juego independiente completo (tamaño pequeño)

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว +1

      Estoy trabajando en un diario de desarrollo. ¡Lo mostraré muy pronto!

  • @dannieamme8180
    @dannieamme8180 ปีที่แล้ว

    I still haven't figured out how to Import a Object in Godot Scene

  • @Riishu_
    @Riishu_ ปีที่แล้ว +3

    Can you make a version for godot 4 plz

    • @NagiDev
      @NagiDev  ปีที่แล้ว +2

      Definitely, I'm already working on it

  • @landozr2443
    @landozr2443 ปีที่แล้ว

    This is a great tutorial but I'm currently a bit stuck at 3:28 where im just getting errors saying that static function "get_action_list()" not found in base input map. I assume this is because I'm working in godot 4 instead of 3 but do you have any idea of what code to write instead?

    • @landozr2443
      @landozr2443 ปีที่แล้ว +1

      Wait nevermind I figured it out thanks to ​@Xeno-Morpehus

  • @another-derpycrafter
    @another-derpycrafter ปีที่แล้ว +1

    could you do this for godot 4? its really nice but im using 4

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      Yes, I'm already in the process of making an updated tutorial

  • @DOGMA20051
    @DOGMA20051 10 หลายเดือนก่อน +1

    For some reason once the animation is activated it won't stop?

    • @NagiDev
      @NagiDev  10 หลายเดือนก่อน +1

      Check the animation player, the animation track shouldn't be set to loop.

    • @DOGMA20051
      @DOGMA20051 10 หลายเดือนก่อน +1

      @@NagiDev thanks for the comment, though I did end up fixing it and Im pretty sure it was the animation loop being enabled so thanks
      This tutorial was great btw it's allowed me to implement so many other things into my game

  • @yozelcapo
    @yozelcapo ปีที่แล้ว

    i need help, i get "is_action_just_pressed: the InputMap action "F" doesn't exist." and i dont know what to do

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      you'll have to go to the Input Map in project settings and define an new action there. Then you can use the name of the action in your is_action_just_pressed function.

  • @Lilfishowo
    @Lilfishowo 7 หลายเดือนก่อน

    Tried adding the prompt.text = "" but I receive an error about the Identifier prompt not being declared

    • @NagiDev
      @NagiDev  7 หลายเดือนก่อน +1

      Check if you've spelt the variable the same as the onready declaration. Also, did you declare it in the first place?

    • @Lilfishowo
      @Lilfishowo 7 หลายเดือนก่อน

      @@NagiDev I didn't thank you

    • @NagiDev
      @NagiDev  7 หลายเดือนก่อน +1

      So is the issue resolved?

    • @Lilfishowo
      @Lilfishowo 7 หลายเดือนก่อน +1

      @@NagiDev yea

  • @DJGamer_2022
    @DJGamer_2022 ปีที่แล้ว

    Invalid set index 'text' (on base: 'null instance') with value of type 'String'. me falla eso me sale :(

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      Can you please check if you added the Label node in your scene and that it's not renamed and/or placed as a child of a different node than the one shown in the tutorial?

    • @DJGamer_2022
      @DJGamer_2022 ปีที่แล้ว

      yes is perfec nodesl@@NagiDev

  • @CosmicEntity-pp2ok
    @CosmicEntity-pp2ok 7 หลายเดือนก่อน

    what's the name of the game that played at the start of the video? I really wanna make interactable buttons like that

    • @NagiDev
      @NagiDev  7 หลายเดือนก่อน

      Outer Wilds. It's an amazing game!

  • @ajivalorant
    @ajivalorant ปีที่แล้ว +1

    hello, can u make this tutorial for godot 4

    • @NagiDev
      @NagiDev  ปีที่แล้ว +2

      Hey! Definitely, I'm working on remaking all my Godot tutorials for Godot 4. Stay tuned!

  • @0Fishbones
    @0Fishbones 9 หลายเดือนก่อน

    ok so I commented earlier but since then deleted it because I fixed it.
    however, now when I attach class_name Interactable to multiple scripts I receive the Class "Interactable" hides a global script class
    is there a way to fix this?

    • @NagiDev
      @NagiDev  9 หลายเดือนก่อน +1

      You can only assign a class_name to one script. If you want to have multiple scripts with the interactable functionality, you'll have to inherit from the Interactable class.

  • @giorgiaalloisio0309
    @giorgiaalloisio0309 ปีที่แล้ว +1

    Hello, I'm currently using the Godot 4.1 version. I've got some issues even though I used the same code (with the corrections on the things that changed). For example I can't figure out why, when I detect the object, it just gives me the prompt message, but not the key code. Another issue I have is that the character still moves when the dialogue is displayed, don't know why. Could you help me with that?

    • @NagiDev
      @NagiDev  ปีที่แล้ว +4

      Hey! The prompt message not showing the key in Godot 4 is probably because you set the input map to use physical keys (which is default in 4).
      You will have to edit Interactable.gd script to have:
      for action in InputMap.action_get_events(prompt_action):
      if action is InputEventKey:
      key_name = action.as_text_physical_keycode()
      As for the character still moving, there could be a number of reasons. Please feel free to contact me on Discord or Twitter so I can help you out.
      Hope this helps!

    • @giorgiaalloisio0309
      @giorgiaalloisio0309 ปีที่แล้ว +1

      @@NagiDev maybe I can send you the code on discord so you can help me out! Do you have a link so that I can contact you, or do I find you with the same name? Sorry to bother, it's just I'm doing a project for my degree, and I want to understand better in order to fix everything

    • @NagiDev
      @NagiDev  ปีที่แล้ว +1

      @giorgiaalloisio0309 you can contact me on Discord at nagidev

    • @DwarvenDoesThings
      @DwarvenDoesThings ปีที่แล้ว +1

      @@NagiDev Thank you for this!! i was actually stuck trying to figure this out and scrolled down a but I thin you should put this change into the description or pin it XD

    • @NagiDev
      @NagiDev  ปีที่แล้ว +1

      @DwarvenDoesThings my dude I'm working on remaking the whole video for Godot 4...

  • @crabbite3093
    @crabbite3093 2 ปีที่แล้ว

    The platform doesn't want towork :( the method create_tween() is not declared in this current class

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว

      Are you using Godot 3.5?

    • @crabbite3093
      @crabbite3093 2 ปีที่แล้ว

      @@NagiDev no but 3.4.4 is there such an huge difference :(

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว

      @@crabbite3093 I'm using the new tween system, which was introduced in 3.5 You can update to 3.5 if you want, it's totally worth it
      Alternatively, if you want to stay with 3.4, you can add a tween node in the platform scene, and run that tween instead.

    • @crabbite3093
      @crabbite3093 2 ปีที่แล้ว +1

      @@NagiDev thx, i will try that

  • @DommoDommo
    @DommoDommo ปีที่แล้ว +1

    Any idea how to get this working with Godot 4?

    • @NagiDev
      @NagiDev  ปีที่แล้ว +1

      Hi, yes, I'm currently working on an updated tutorial for the same. The video would be up in a few weeks.

  • @ruumroom.
    @ruumroom. ปีที่แล้ว

    can u tell us how we can implement the dialog box using dialogic

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      I'm not sure what format Dialogic uses to store dialog data. Even if it was JSON data (like in my add-on), I don't think the two would be compatible. Sorry :/

  • @sadisticallyme8379
    @sadisticallyme8379 ปีที่แล้ว

    im stuck in a specific part of this it keeps say "invalid call. non existant function 'interact' in base 'static body (button.gd)' the button.gd is the interactable script i just named it wrong.

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      You'll have to make sure the static body you're interacting with has a script, and that script has an `interact` function.

    • @sadisticallyme8379
      @sadisticallyme8379 ปีที่แล้ว

      @@NagiDev thank you for replying but the problem persists, the object has the script attached but still whenever i click the interact button, it kicks me out and gives me the error.

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      @@sadisticallyme8379 Have you excluded the raycast from detecting the player itself?
      You can debug by printing the name of the collider to check which object you're actually interacting with.
      print(raycast.get_collider().name)

    • @sadisticallyme8379
      @sadisticallyme8379 ปีที่แล้ว +1

      @@NagiDev ah yes nevermind me i went thru the script and found a spelling mistake I wrote interact instead of Interact so the hole thing just didnt work.

  • @BlueboxHS
    @BlueboxHS หลายเดือนก่อน

    my ray isn't going up and down its only going left and right

    • @NagiDev
      @NagiDev  29 วันที่ผ่านมา

      did you add the raycast as a child of the head node?

    • @BlueboxHS
      @BlueboxHS 29 วันที่ผ่านมา

      @ yes but i solved the problem it was just my camera control script being bad

    • @NagiDev
      @NagiDev  29 วันที่ผ่านมา

      oki doki

  • @funanime7461
    @funanime7461 ปีที่แล้ว +1

    Are you using the android version of godot?????

    • @NagiDev
      @NagiDev  ปีที่แล้ว +1

      not in these tutorials, but yes, I do work on it sometimes

  • @LowQualityGames
    @LowQualityGames 2 ปีที่แล้ว

    Hi I have a problem with the get_prompt() function.

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว +1

      sure, lemme know the full problem and I'll try my best to help you

    • @LowQualityGames
      @LowQualityGames ปีที่แล้ว +1

      ​ @Nagi Everything's is good I'm just a bit distracted

  • @kenfresno2125
    @kenfresno2125 ปีที่แล้ว +10

    I have to assume based on the comments that this actually worked at some point, but it absolutely does not anymore. Gotta love Godot bragging about all the features they add, and never mentioning all of the things they needlessly changed or removed that render a decade worth of tutorials valueless.

    • @NagiDev
      @NagiDev  ปีที่แล้ว +10

      Hi, I have mentioned it in the title: this tutorial is for Godot 3. Godot developers maintain older versions of their engine for a while since people working on long game projects can't afford to switch to the next major version. I'm sorry I haven't posted a tutorial for Godot 4 yet, but this tutorial is still useful for people working with Godot 3.
      Cheers!

    • @kenfresno2125
      @kenfresno2125 ปีที่แล้ว +4

      @@NagiDev I apologize if you thought I was complaining about your tutorial. My complaint was about Godot needlessly changing minor things and breaking basically every tutorial and answer you can find online.

    • @NagiDev
      @NagiDev  ปีที่แล้ว +8

      It's alright Ken. I understand your point but it's a normal thing for most software to change in every major update. Blender 2.8 comes to mind as an example. But being a long time user of both software I managed to update my knowledge of Blender and Godot without any trouble.
      Now, I understand this can be frustrating for beginners and I am here just to help with that. I have a bunch of tutorials in the works for the latest version of Godot. I just need some time to put them all out, so stay tuned!

    • @ro0n655
      @ro0n655 11 หลายเดือนก่อน +1

      Aw man… thx for bringing this to my attention before I apply it to my game.

  • @plushycat
    @plushycat ปีที่แล้ว +1

    A png youtuber is just a phase trust me

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      3D animation is hard 😭

  • @kevinsellers7566
    @kevinsellers7566 ปีที่แล้ว +1

    WHY SO FAST!!!😔

    • @NagiDev
      @NagiDev  ปีที่แล้ว

      I HAD TO GO PEE!😭

  • @Show-wi7cw
    @Show-wi7cw ปีที่แล้ว

    hairfa😅😊

  • @rekiemr4501
    @rekiemr4501 2 ปีที่แล้ว

    pls make game like a mobile legends

  • @nowherebrain
    @nowherebrain 2 ปีที่แล้ว +2

    lmao "and doing what most of the world is doing about climate change"...nothin'..true, but funny as fuck.

    • @NagiDev
      @NagiDev  2 ปีที่แล้ว

      I dabble in dark humour ⁠(⁠ ͡⁠°⁠ ͜⁠ʖ⁠ ͡⁠°⁠)

    • @nowherebrain
      @nowherebrain 2 ปีที่แล้ว +1

      @@NagiDev noticed. I thi9nk I subbed over your fucked up humor :) love it..

  • @Show-wi7cw
    @Show-wi7cw ปีที่แล้ว

    las

  • @binyot5505
    @binyot5505 ปีที่แล้ว +4

    gee slow down

    • @NagiDev
      @NagiDev  ปีที่แล้ว +1

      hehe, I'll make sure to slow down in the updated video for Godot 4.2

    • @JAMESSAN117
      @JAMESSAN117 9 หลายเดือนก่อน +1

      You know you can rewind and change playback speed

  • @lady_deaths_head
    @lady_deaths_head ปีที่แล้ว +1

    This is sooooo useful