UE4 With Casey - Zelda Style Pickup/Throw Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ค. 2018
  • Animations Used: drive.google.com/open?id=1iwO...
    In today's tutorial I show how can do the basic framework of picking up objects in the world with our player, carrying them over our head, and then throwing them.

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

  • @ue4withcasey391
    @ue4withcasey391  6 ปีที่แล้ว +9

    If you would like to use the animations I made, I left a download link in the description.

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

    This video is a masterpiece in the full sense of the word. I just wanted to learn how to put my campfire on the ground, now i can build a house. Thank you so much, I really appreciate it.

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

    I have finally figured out, why the editor is crashing when applying impulse to the picked up mesh. It is generally not a good idea to turn on and off the physics and collisions of a Destructible Mesh in a Blueprint. It leads to weird behavior. Try in your "Pickupable" to set to Simulate physics and then lift it. You will notice that the DM with physics beieng switch off after lifting will start to weirdly move and glitch, at least in my case. Then you add an impulse and it crashes the engine. The Impuls works fine if you previously did not change the physics and collisions setting of the DM in your code. The way I fixed that is that I made two BP one with a SM and one with DM. I pickup and throw the SM and wenn it collides, the DM will be spawned (with phyiscs on) and the SM will despawn.

  • @dreamersdream5131
    @dreamersdream5131 4 ปีที่แล้ว

    Great job Casey, thank you for this amazing tutorial, well explain and every steps is clear and clean. : ). Please keep it up

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

    Dude you're easily one of the most well spoken UE4 tutors I've seen to date, thanks for the content!! Maybe the future holds Hat in Time rope swinging? ;)

  • @naza0777
    @naza0777 5 ปีที่แล้ว

    This is most informative tutoreal ive ever saw really thank you ...

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

    You saved me! I was making a interactive item system for my dream game, and I was using overlapping colliders on the parent object, never thought of the performance degrade for that!

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

    Looking back, I should have explained what timelines are. For those of you that aren't familiar with them, timelines act almost like "Event Tick", but only for a predetermined amount of time and only when we tell it to do so. In the video, I set my timeline to be 0.5 seconds long. That means that when executed (or at least when executed by "Play From Start" like I did in the video) the "Update" output execution pin will fire every tick for the next 0.5 seconds. Timelines can be useful for many more things than this, but I find it can be a simple way to get "Event Tick" like execution but only for small bursts. Note: I wouldn't call Timelines overly expensive, but you do want to be careful not to overuse them. An alternative would be to do a Boolean check off of tick if we should be sliding, and then set that bool to be true and back to false after a delay equal to the timeline length.

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

    THANK YOU!!! I love this tutorial so much!

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

    Hyped for this! 😂

  • @Saporling
    @Saporling 3 ปีที่แล้ว

    Great stuff! Saved me a lot of time :)

  • @VladysLove_3d
    @VladysLove_3d 4 ปีที่แล้ว

    It is an awesome tutorial, I went it trough! thank you!

  • @kingofsapiens7403
    @kingofsapiens7403 3 ปีที่แล้ว

    Live Long My Lord !! I download it before you hide it, I can't believe this video is free. I think this will help me on 3-4 tasks in my project.

  • @legacystudio1119
    @legacystudio1119 5 ปีที่แล้ว

    love your channel!!!

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

    100th sub! Hope your channel grows to be much larger.
    Video Requests:
    -Combat mechanics similar to Dark Souls
    -A building system sort of like how Frozone moves in the incredibles
    -Making a character change form, like a normal character turning into a tank
    -Harry Potter magic style particle effects
    Thanks and Good Luck!

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

    Damn your Videos are just so good its just to bad that your channel did not pop off

  • @Diana2zzz
    @Diana2zzz 5 ปีที่แล้ว

    Very patient and detailed tutorial, can you do a tutorial about throwing spears and Archery?

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

    For anyone following along with this and wanting to make it non-destructable, I.E. being able to pick up and throw the object more than once, and finding picking it up a second time isn't working.
    Go to the actor you're picking up and set the static mesh as the root component.

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

    love the tutorial! just wondering if you ever found a solution to the 'add impulse' issue? as its crashing for me as well. Cheers

  • @Rijayokano
    @Rijayokano 5 ปีที่แล้ว

    Great tutorial, i tried to grab an enemy with this logic, so i attached a socket to the left hand of my character and then i made an animation where he is holding something up. When i preview the enemy in the socket it looks fine (his head is on my character hand) but when i play and press the F key the head of my enemy doesn't match the socket (im using snap to target). What can be the issue??

  • @SaynYT
    @SaynYT 3 ปีที่แล้ว

    The tutorial is amazing and yt has a lot of explanations but I'm stuck on the part where it should display the widget it just doesn't show up
    I think the line trace doesn't stick to the blueprint when playing it faces to opposite direction

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

    Great tutorial Casey!
    BUT I NEED HELP with one issue!
    I have a problem because I followed this tutorial to make a mechanic just like yours, but I don't want to break the object when throwing it. I want to be able to pick the object again and throw it every times I want, but I can't make it.
    When I throw an object I can't throw it again (I don't break it). I can pick and throw others instances of the object, but only once per instance.
    Please I need HELP!! 😢

  • @jagplay3168
    @jagplay3168 4 ปีที่แล้ว

    Amazing video tutorial there, I wanted to ask, I believe it to be a bug but when I throw my object on the ground instead of breaking apart it just disappears so I wanted to know if there is a fix for it, I'm using Unreal Engine 4.24.1

  • @John-un3lj
    @John-un3lj 4 ปีที่แล้ว

    I'd love a rundown on how this would work on ragdolls, like picking up dead bodies. Think Far Cry 3.

  • @beat91sms
    @beat91sms 3 ปีที่แล้ว

    i would like one of the items to be a gold bag for example and when the player picks it up it dosent go to inventory but yes to a numeric value in inventory that i can change on the item it self it has already item value option but i cant seem to make it happen, i made the text binding to increase gold but when i pick up the gold bag still goes to inventory as 1 item, can someone help plz?

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

    great tutorial !! btw i've changed the mesh to non-destructible mesh , so that when i throw it , the char can pick it up back , the lifting works fine , but when i throw it and pick it up back , the mesh location was far from player's hand and its floating , can someone tell me how to fix it ?

  • @gironamenamora5124
    @gironamenamora5124 4 ปีที่แล้ว

    Awesome Quality! Dude you forgot and can't see any comments below either about IMPULSE on min #56:00 it's crashing mine also, and everybodys. Seems a hairy subject. Any update on this?

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

    hey man quick question, idk if you will see this but I followed along with your system but I did not use a destructable object as a throwable so when you throw the object you it remains on the ground with the physics but then I noticed that I can not pick it up again.

  • @KepperSnapper
    @KepperSnapper 4 ปีที่แล้ว

    Hi i deviated from the destructible mesh workflow and used a static mesh component instead. The code works fine except for this popping up occasionally after throwing.
    Invalid Simulate Options: Body (PickupAbleBP_18.StaticMeshComponent0 Props5_Battery) is set to simulate physics but Collision Enabled is incompatible
    I set my tracer is detecting for a "hit" for a custom trace channel i made called "PickupTrace", and i changed the collision settings to "Custom" for the component within the blueprint and set it to block everything.
    Would appreciate any help from anyone whos on this video!

  • @logandoejogando...7532
    @logandoejogando...7532 3 ปีที่แล้ว

    It is applicable in 4.26 or there would be a way to record another class for this version working with a button to play the item.

  • @SaynYT
    @SaynYT 3 ปีที่แล้ว

    Can i do this using a fps controller instead and without any animation?
    (Sorry if this is a stupid question. )

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

    Was there ever a solution to the impulse bug?
    It's Nov. 2020, and it crashes my computer also.

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

    please, oh please can you teach me how to do grapple/glory kill moves

  • @nierautomata9654
    @nierautomata9654 3 ปีที่แล้ว

    How can I reset my character ? I noticed after throwing it got stuck with that blend mode then if i try to pick up the object again its not moving anymore,,but when I try to do an attack animation after throwing the character does not seem to be stuck and can pick up and throw objects again..

  • @rogeryang8864
    @rogeryang8864 5 ปีที่แล้ว

    Hi, thank you for the tutorial! My game crashes when i add impulse as well, is there a way to fix it?

    • @dilowagner
      @dilowagner 4 ปีที่แล้ว

      I have same problem!! I`m not found solution :(

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

      @Nightreeves can u show the screenshot of ur code ?

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

      ​@Nightreeves ah i see , did u remember how u use that code ? XD , cos it's not working for me :C

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

      @Nightreeves hey nvm ive figured it out ! thanks for your reply ! have a safe one :D

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

      Thank you for suggestion using node ''set physics linear velocity'' instead of '' add impulse'' . this suggestion solve my problem

  • @elifnurvarl5622
    @elifnurvarl5622 3 ปีที่แล้ว

    Is there any way to make this picking up event without the animations? Can someone help me please? :(

    • @ue4withcasey391
      @ue4withcasey391  3 ปีที่แล้ว

      You need to move the code that the animation triggers to where we trigger the animation. At 29:19 on left click we trigger the animation. At 33:10 the animation calls the event "lifting final" on the character. So on left click you just want to call lifting final

    • @elifnurvarl5622
      @elifnurvarl5622 3 ปีที่แล้ว

      @@ue4withcasey391 So i wrote the code without adding the AnimBP part but it still didn't work :/ I tried to do it by using physics handle, i couldn't do that either, i'm really stressed out:(

    • @elifnurvarl5622
      @elifnurvarl5622 3 ปีที่แล้ว

      @@ue4withcasey391 is there any possible way you to help me :(

    • @ue4withcasey391
      @ue4withcasey391  3 ปีที่แล้ว

      @@elifnurvarl5622 make sure you are turning off physics on the object you are trying to lift, and then attach the object to our character

  • @pibetry
    @pibetry 5 ปีที่แล้ว

    I've been stuck on this tutorial forever. You should have left out the Destructible part for another tut, because I don't know how to set up any other kind of object. Nothing connects, nothing is picked up.

    • @ue4withcasey391
      @ue4withcasey391  5 ปีที่แล้ว

      Almost nothing changes with the code when not using destructible meshes. You would want to change any casting you do to work with the collision type you are using (probably world dynamic) and then the references you store wouldn't be to destructible meshes, but to static meshes.

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

    Thanks for the tutorial! Would enjoy it more if you didnt click on and off node boxs and click in and out of windows only to express your explanations though