Unreal Engine 4 Tutorial: Racing Timer/Stopwatch Tutorial

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

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

  • @Uvuv6969
    @Uvuv6969 3 года назад +1

    Ok I don’t judge people’s mics usually but holy Jesus it’s actual earrape I hope you’ve gotten a new mic in the past 3 years

    • @NebulaGamesInc
      @NebulaGamesInc  3 года назад +1

      Probably not since I stopped doing these things 3 years ago....you're welcome 😉

    • @Uvuv6969
      @Uvuv6969 3 года назад +1

      @@NebulaGamesInc well that’s a mood

    • @NebulaGamesInc
      @NebulaGamesInc  3 года назад +1

      It was a hobby for a time in my life that has passed.... sorry man, on the bright side there is only a limited number of ear rape videos ha

  • @hermonkruger3270
    @hermonkruger3270 6 лет назад +2

    Ah, thanks for the tutorial. A big help it was to a non-coder. Big ups brother.

  • @wolfverniers8411
    @wolfverniers8411 5 лет назад +2

    How do you make the thing you already made?

    • @wolfverniers8411
      @wolfverniers8411 5 лет назад

      I also dont have a playerref

    • @NebulaGamesInc
      @NebulaGamesInc  5 лет назад

      I would use this tutorial instead. It is a much "nicer" race timer.
      ruclips.net/video/dDDHtSp_A-0/видео.html
      As for the player reference, you need to cast to the player. If you need help with that check out the beginner series, first video is about casting, #25 is creating references. Between those 2 you should be able to create the necessary references.
      ruclips.net/p/PLyu-W38DvZhqByAoeva1jewB5s78zQHIy

  • @M4v3RicK99
    @M4v3RicK99 6 лет назад +1

    hey im trying to do a version of this for a split screen running game, any idea how i'd do 2 separate timers per character? thanks!

    • @NebulaGamesInc
      @NebulaGamesInc  6 лет назад

      2 timers for each character so 4 total on screen or you mean 1 timer per character for a total of 2?

  • @kurredev
    @kurredev 3 года назад

    I believe I have done everything correctly but I cannot compile the code because I get a warning message under "Cast to PlayerController" that says: 'Player Controller does not inherit from 'Character' ( Cast to PlayerController would always fail). I suppose I need a Character reference but how exactly do I go about that? Solution is much appreciated.

    • @NebulaGamesInc
      @NebulaGamesInc  3 года назад

      The C++ code compiled properly though right? Like you have the component that keeps track of time? Or the C++ code is failing?

    • @kurredev
      @kurredev 3 года назад

      @@NebulaGamesInc I'm using Blueprints, not C++. I basically copied your blueprint from the video and the very first turqoise node is giving me the warning message that wont let me compile the code.

    • @NebulaGamesInc
      @NebulaGamesInc  3 года назад

      @@kurredev Sorry, thought you were using my more elegant solution which I highly recommend :)
      try using this tutorial....it will walk you through adding C++ to the blueprint project. And all you have to do is copy/paste, promise ha It is a way better "stop watch" for racing games and such honestly.
      ruclips.net/video/dDDHtSp_A-0/видео.html

  • @sparto2132
    @sparto2132 5 лет назад

    This is good but any idea on how to show the time with more decimal points? Only having the whole number makes it pretty useless for speed running or racing

    • @NebulaGamesInc
      @NebulaGamesInc  5 лет назад

      I made a more advanced stopwatch and linked in the description of this video. Anyway here is the link. I think this is what you're looking for
      ruclips.net/video/dDDHtSp_A-0/видео.html

  • @AmazeForDays
    @AmazeForDays 6 лет назад

    I got the timer to work, but it doesnt seem to stop once ive walked into the trigger box, any ideas??

    • @NebulaGamesInc
      @NebulaGamesInc  6 лет назад

      Sounds like an issue with the cast to node for whatever actor you want to stop the timer. Check the cast node and make sure it is not failing.

    • @AmazeForDays
      @AmazeForDays 6 лет назад +1

      @@NebulaGamesInc All sorted. On the branch attached to the trigger box, my stop function was connected to true but i swapped over to false and it seems to work fine. thanks for the tut anyways :)

  • @SuperDragonBoyy
    @SuperDragonBoyy 2 года назад

    Awesome vid! Was just wondering if there was a way to make this so the timer starts when you pass over a trigger box?

    • @NebulaGamesInc
      @NebulaGamesInc  2 года назад +1

      If you add a trigger box just use the event built in for overlaps and call the start timer function and that should be fine. The trick is referencing the trigger box/timer component and that is very individualized based on your setup. But the basic idea is you have a trigger box in the level, you have some actor with a component that contains my timer. You give the actor with the timer component a reference to the trigger box and then you can initiate the timer through trigger box events.

    • @SuperDragonBoyy
      @SuperDragonBoyy 2 года назад

      @@NebulaGamesInc thanks! I'll see what I can do to try and make it work 😅

  • @WHW-ji4ep
    @WHW-ji4ep Год назад

    My timer stops at number 1 can you help

    • @NebulaGamesInc
      @NebulaGamesInc  Год назад

      Honestly, this was a lame tutorial....it is a TERRIBLE "racing" timer since it only has the one digit. I made a significantly improved one here
      ruclips.net/video/dDDHtSp_A-0/видео.html
      It is C++ code you can add easily to your project. You will just need to setup a widget to display the node output. Hope this helps :)

  • @bialasik8433
    @bialasik8433 4 года назад

    My timer does not stop on the trigger box help!!!

    • @NebulaGamesInc
      @NebulaGamesInc  4 года назад +1

      I suggest following this tutorial instead. It is significantly better for use as a stopwatch or timer. ruclips.net/video/dDDHtSp_A-0/видео.html

  • @itsjustbonnie6418
    @itsjustbonnie6418 5 лет назад

    How can one setup a racing player position on hud

    • @NebulaGamesInc
      @NebulaGamesInc  5 лет назад

      Not sure what you mean by that..... can you clarify? Also please check out this video as it is an updated race timer/ stop watch that's significantly more polished.
      ruclips.net/video/dDDHtSp_A-0/видео.html

  • @rahulkillerbeing2981
    @rahulkillerbeing2981 6 лет назад +1

    Please make a tutorial series on multiplayer racing game

    • @NebulaGamesInc
      @NebulaGamesInc  6 лет назад +1

      @Super Star Rahul Kumar, haven't really messed around with multiplayer unfortunately I wouldn't be much help there. If there is some particular racing game "element" you are having trouble with I might be able to help with that!