Simple Actor Movement in Unreal Engine 5 - Step-by-Step Tutorial

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 24

  • @JohnHartemusic
    @JohnHartemusic 11 месяцев назад +5

    This is exactly what I was looking for. Thanks.

    • @gisli
      @gisli  11 месяцев назад

      Glad to hear it!

  • @natn8r124
    @natn8r124 2 месяца назад +1

    Thanks a ton!! Love the easy walkthrough!!!

    • @gisli
      @gisli  2 месяца назад

      Glad it helped!

  • @cursedbishstudio
    @cursedbishstudio Год назад +1

    This will be a good watch. always good to see how other people do things. I have a question for you mate, from one game dev to another. do you know how to make a widget buttons "on clicked/on pressed" work with right mouse click and not just left? I cant work it out, i end up using an image as a button and overriding a function, but then i loose some of the standard things that come with a button like "on hovered" etc.. how do you tackle this? for an example: iv been trying to make a button that when left click it decreases an amount and when right clicked it increases an amount, i can do it with an image or anything else but just not a button lol.
    Regards.
    Bishop.

    • @gisli
      @gisli  11 месяцев назад +1

      Hi,
      Thanks for the comment. You questions about how to use the right mouse button and not the left to interact with the UI actually stumped me. I have no idea how to do this :)
      I might try and do some experiments and see if I can figure it out and I'll let you know. Its a really interesting case

    • @cursedbishstudio
      @cursedbishstudio 11 месяцев назад

      thank you, if you make a button (with no functionality) and left click it, the button will as default "click/change colour". now here is the thing.. it will also do it with right mouse click.. so unreal engine as default detects right mouse button on clicked but doesn't give us a way to use it. @@gisli

  • @struggling3dartist910
    @struggling3dartist910 Месяц назад

    is this going to be affected by frame rate?

  • @lucasamaro8860
    @lucasamaro8860 4 месяца назад +1

    great video

    • @gisli
      @gisli  4 месяца назад

      Thanks! I really appreciate it!

  • @mrh8984
    @mrh8984 3 месяца назад +1

    Just what I need. But I set this up, hit play, I have it set to a key stroke press and when I hit the key (R) it disappears, ideas?! I even set the distance to 0 and it disappears. Would love some guidance. Thanks.

    • @mrh8984
      @mrh8984 3 месяца назад +1

      I was using the First Person Example to test, and as soon as I hit the key it would actually send it under the ground as the ground level Z is 190 and the cube would go under the ground geometry and go to 0. So I set the Z location in SetActorLocation to 190.
      Question now is how can I just add movement to wherever the cube is to begin with? without it going to 0 and without having to SetActorLocation to 190.

    • @gisli
      @gisli  3 месяца назад

      The trick there is you want to first (in the tick function). call "GetActorLocation) which will give you the 3D position of your cube.
      Then its just a matter of adding ( + ) some value, for example (1,0,0) to the current actor location. Then lastly, you call "SetActorLocation" with the result of your add function
      Hope this makes sense :D

  • @bauzel5890
    @bauzel5890 4 месяца назад +1

    If i do this in UE 5.4 my actor or mesh dissapears when i play the level. But i get the correct coordinate output from the actor as string. So the moving works. Anybody knows why the objects get invisible when moved?

    • @gisli
      @gisli  4 месяца назад

      There is a chance that your object is moving too fast and it disappears out of view. There is a pause button that you can press, and go to the outliner (list of actors in the scene). So when you play the game you could find the actor that disappears in the outliner and look at the location. Maybe the location is a very high number which means you are moving too fast

  • @nawhz6292
    @nawhz6292 5 месяцев назад +1

    not good

    • @gisli
      @gisli  5 месяцев назад +1

      Sorry to hear that! What do you suggest to be better?

    • @nawhz6292
      @nawhz6292 5 месяцев назад +2

      @@gisli you didnt mention the MoveComponentTo, Finterpto, and Rinterpto nodes.

    • @gisli
      @gisli  5 месяцев назад +1

      @@nawhz6292 thats true, the idea was that this was the absolute most simple way to move an actor for beginners. All of the methods that you mentioned are definitely valid, but I as a beginner you often need to understand that before you move on to the more detailed concepts like you mentioned.
      I'll hopefully be able to do a more in depth tutorial on movement in the future!
      Really appreciate your feedback!

    • @nawhz6292
      @nawhz6292 5 месяцев назад +1

      @@gisli 16 minutes video != Most simple.

    • @gisli
      @gisli  5 месяцев назад +1

      @@nawhz6292 I disagree, simple does not mean the fastest, it just means that it assumes little to no prior knowledge. Sounds like you might have been looking for the quickest way to learn movement in unreal engine