Keeping Track Of The Time And Days | Day Night Cycle Part 2 - Unreal Engine 4 Tutorial

  Рет қаралды 10,637

Matt Aspland

Matt Aspland

Күн бұрын

Пікірлер: 81
@ULTRARADICALTOYWORKS
@ULTRARADICALTOYWORKS 3 жыл бұрын
I can't thank you enough. Every tutorial you make is not only helpful to the task at hand but helps give overall context and understanding of UE4 as a whole. You rock, appreciate ya!
@MattAspland
@MattAspland 3 жыл бұрын
Thank you for the kind words mate, really happy I could help out!
@brokenkeyboardapps6271
@brokenkeyboardapps6271 3 жыл бұрын
These are the best tutorials I have seen in a long time. Greatly appreciated!
@fleurbird
@fleurbird 3 жыл бұрын
This is cool, looking forward to the saving sys
@MattAspland
@MattAspland 3 жыл бұрын
Thanks Fleur!
@benjaminreynolds3659
@benjaminreynolds3659 3 жыл бұрын
@@MattAspland Did I miss the save day and time video as I don't see it anywhere on the channel. Thanks for all your content, most impressive and helpful!
@Anonymous-mf8ip
@Anonymous-mf8ip 3 жыл бұрын
Thanks Matt, I don't know what I would do without you:)
@axilyk
@axilyk 3 жыл бұрын
Very useful tutorial for my Indie Game!
@MattAspland
@MattAspland 3 жыл бұрын
That's great to hear bro! :)
@RB-GameDesign
@RB-GameDesign 3 жыл бұрын
Fantastic tutorial Matt, just what I needed at the perfect time. Really glad I found you, shall be keeping a close eye for more tutorials :)
@g-dojjo
@g-dojjo 3 жыл бұрын
Thanks brooo!!really good tutorial!! :D
@MattAspland
@MattAspland 3 жыл бұрын
It's always a pleasure to help bro :)
@haddi8582
@haddi8582 3 жыл бұрын
AWESOME I wanted this for sooo long!
@abegames4880
@abegames4880 3 жыл бұрын
Yeah I was to ask you to do this video ;)
@MattAspland
@MattAspland 3 жыл бұрын
Always a pleasure bro :)
@AMMediaGames
@AMMediaGames 2 жыл бұрын
Here's what you type in the box you will know when - Day: {Day} | {Hours} : {Minutes}
@wolfiedgr8t
@wolfiedgr8t 3 жыл бұрын
Very nice Matt 👍
@MattAspland
@MattAspland 3 жыл бұрын
Thanks a lot dude! :)
@TheBassMountain
@TheBassMountain 3 жыл бұрын
Excellent tutorial series! Thanks so much
@fifthfangofmetsudo
@fifthfangofmetsudo 2 жыл бұрын
I know this is an older video, but would you mind explaining how you arrived at the specific number of 240? I'm struggling to make the connection.
@studiobaxter1242
@studiobaxter1242 Жыл бұрын
That worked, thanks.
@ManImTheVoid
@ManImTheVoid 6 ай бұрын
Does this work for Unreal Engine 5 as well? I know some things are outdated
@Faizy_Writes
@Faizy_Writes 3 жыл бұрын
😌
@jiachengjiang2624
@jiachengjiang2624 Жыл бұрын
Hello there, thank you so much for the series of day and night cycles and time tracking, they help me a lot. But I get some questions here, So I put my time speed as 1 or 2, or 3, the time is going on but the sun does not rise correctly. but when I put a larger number on the "speed" it doing correctly.
@MonkeyDGhoul
@MonkeyDGhoul 3 ай бұрын
do you know how to correct it?
@Najtin
@Najtin 3 жыл бұрын
love your videos
@MountainDanGaming
@MountainDanGaming 3 жыл бұрын
Hi Matt, been following this tutourial and many others of yours, but i have an issue with this one, where did you get the Update Sun Direction function? i cant seem to add it
@trypresident
@trypresident 2 жыл бұрын
time stamp at 11:41 in the video i seen that rite after it goes in to day 1 y dont the time start at 1 instead of 0 to 1 so if u think about it its missin a hour can you explain
@eg8568
@eg8568 3 жыл бұрын
Excellent work. Thank you very much. This was very helpful :)
@vixuel
@vixuel 3 жыл бұрын
I'm having an issue, when I press play It'll show 2 layers of text on top of each other. One showing the time working and another one just on 00 : 00. At 6:45 in the video, adding to the viewport shows the working time counter but I cannot find where the 00 : 00 comes from. Ill try making in in a new Widget (rather than my main HUD).
@vixuel
@vixuel 3 жыл бұрын
UPDATE: Due to the HUD being opened on the ThirdPersonCharacter, that's what caused the overlap, so making a new widget for time and putting it where id like works quite well.
@TamberCave
@TamberCave Жыл бұрын
Hey Matt, how would I go about only displaying/updating the minutes in 5 or 10 minute intervals instead of every single minute being displayed? Thanks!
@madclowninc.4233
@madclowninc.4233 3 жыл бұрын
I got everything else working and the clock is counting up but its writing over the text so it goes from 12:00 and the 1 overlaps the 0 etc as it counts up, making a mass of numbers
@Hushey
@Hushey 3 жыл бұрын
perfect tutorial for explaining day night - however i want to take it further and replicate it: posted in problems and solutions 1 on your discord. cheers for the vids
@deathpony3333
@deathpony3333 3 жыл бұрын
Can you make a tutorial where you press a key/button and the time changes with the sun moving to the designated position. So like if it's noon and you press a button the sun moves down and it sets
@MattAspland
@MattAspland 3 жыл бұрын
Great idea, I can add that to the additions for this :)
@deathpony3333
@deathpony3333 3 жыл бұрын
@@MattAspland I tried making it in my game, by using a flip flop and light source rotation, but the problem is the sun just snaps to the position I want instead of smoothly lowering
@TrojanLube69
@TrojanLube69 3 жыл бұрын
@@deathpony3333 interpolate the values from current to desired target. Use a Rinterp node.
@TrojanLube69
@TrojanLube69 3 жыл бұрын
@@deathpony3333 Make sure you stop adding rotation to the sun while the interpolation is happening. That way no jittering happens.
@MrBenjaminPettit
@MrBenjaminPettit Жыл бұрын
Hey Matt, Great tutorial as always. I'm trying to modify this slightly by adding a 'Make Date Time' node so I can have years and months tracked, however it doesn't seem to work. I have it working fine using the 'Make Timespan'. When I check the return value of the Seconds on the Make Date Time node the value doesn't change. If you know of any fix for this that would be great. Keep up the good work.
@bowdy4952
@bowdy4952 3 жыл бұрын
Hey matt, i have the cycle form different tutorial but when it's night, the sun light is coming from below the world and makes through objects. So can you check if that happens with your system as well? If not i'll change to this cycle system instantly ❤️
@sarahm2640
@sarahm2640 3 жыл бұрын
It's called light leaking and if you put a solid mesh under the landscape it will fix this. Sometimes the flat plane or the single poly things do this stuff.
@trypresident774
@trypresident774 2 жыл бұрын
i seen in someone video were it was counting from 12noon to 12am instead of 12noon to 24am can u please make a vidoe on how to make it tell time from 12 to 12 thanks
@Ausyaustingaming
@Ausyaustingaming Жыл бұрын
It’s not tracking stuck at 0 please help
@IoSkyBoyoI
@IoSkyBoyoI 2 жыл бұрын
This is very cool, What about assigning Named days to the days? So insted of it showing 0, it shows monday etc.
@TheKingEsoko
@TheKingEsoko 3 жыл бұрын
Hi, everything is set up and I have re watched the tutorial over about three times and everything is up to scratch as you have done it yet the time does not begin to count up instead it stays at Day 00 I 00:00. Is there anything that could be stopping this counting or if there is something that I am missing?
@RastoDM
@RastoDM 2 жыл бұрын
Hi do you remember your solution? i have the same issue.
@Elputokorky
@Elputokorky Жыл бұрын
@@RastoDM did you find the solution for this?
@RastoDM
@RastoDM Жыл бұрын
@@Elputokorky No, i was using unreal 5 though so i think the logic changed between engine updates. only a guess though
@xrecruit
@xrecruit 2 жыл бұрын
does it work on UE5? because i can not get it to pass the variable information to the widget. Help.
@RastoDM
@RastoDM 2 жыл бұрын
i was able to make in ue4 but have this issue in 5.. did you find a fix
@xrecruit
@xrecruit 2 жыл бұрын
@@RastoDM 😑 yea a very long way around...and probably not to practical. I kept in the time in the level blueprint and cast to my character and the cast to the widget. 😮‍💨 it works but I think it can be done way more efficient in UE5
@RastoDM
@RastoDM 2 жыл бұрын
@@xrecruit anyway you can share a couple examples?
@xrecruit
@xrecruit 2 жыл бұрын
@@RastoDM uhh on here I don't know how ...but message me on discord if you have discord and I can screen shot you my work around
@haddi8582
@haddi8582 3 жыл бұрын
Hey, I have a little problem, not with the code itself, but I want to make it, that I can sleep and then the time adjusts, this in itself is no problem and works, butI can't cast to the level blueprint and so i don't know how I am supposed to let it know when the character actually sleeps. Would anyone know a solution to this?
@Hugo-yk8tk
@Hugo-yk8tk 2 жыл бұрын
sunlight gets through my landscape when passing under it (at night), how can I fix it?
@thatdudewithfacts
@thatdudewithfacts 3 жыл бұрын
when I change the lenght of the day to under 30, the sun doesnt come up on time, how can I slow down the time of day, to match the sun ?
@thatdudewithfacts
@thatdudewithfacts 3 жыл бұрын
whenever I make the day shorter, the time doesnt change a accordingly
@joachim2464
@joachim2464 3 жыл бұрын
I have the same problem. Did you find a solution?
@thatdudewithfacts
@thatdudewithfacts 3 жыл бұрын
@@joachim2464 I didn't, sorry
@khaledwaleed6582
@khaledwaleed6582 3 жыл бұрын
We need an explanation of how to automatically turn on the lights at night 😊 And Thanks
@MattAspland
@MattAspland 3 жыл бұрын
As afore mentioned, it's on my list to do for this series :) All the best to you mate! :)
@dryde7589
@dryde7589 2 жыл бұрын
Hi there the simpliest way from this stageto do this is to create a Bool variable into the function where you break the timespan and use a" >= branch" to set the bool for IsNigth or not and then "read" this Bool in your ligth behaviour Bp
@itanshi
@itanshi 3 жыл бұрын
What would cause the Sun to stop moving at nadir? (lowest point)
@stevenwynn819
@stevenwynn819 3 жыл бұрын
A timely video. Ha ha.
@joachim2464
@joachim2464 3 жыл бұрын
Hi, the cycle seems to work great at the speed 30. But if I lower it to make the day longer it stops working. It transitions to night and then it stops. What I am doing wrong?
@Hushey
@Hushey 3 жыл бұрын
timeline transition time is probably too high for it
@Zygerboy
@Zygerboy 4 ай бұрын
Great tutorial but, This only works if the speed is around 10, if I change the speed say 5 or 2.5 the time mismatch with sun position and sunrise is now happening at 12 am.. That is totally strange and I laughed at it... There is some Number that needed to be changed somewhere in the level blueprint but am not sure.. need help pls :D
@FlamyREC
@FlamyREC Ай бұрын
Did you manage to fix it?
@Zygerboy
@Zygerboy Ай бұрын
​@@FlamyREC I deleted my whole project because I became so frustrated that I couldn't find a fix.
@thatdudewithfacts
@thatdudewithfacts 3 жыл бұрын
how can I make the day longer, while keeping it alligned with the sun movement?
@MattAspland
@MattAspland 3 жыл бұрын
You should be able to lower the speed float value that we created in the previous episode
@thatdudewithfacts
@thatdudewithfacts 3 жыл бұрын
@@MattAspland for some reason, they time is messing up when I do that, the sun coms up very late at 11 am
@MattAspland
@MattAspland 3 жыл бұрын
@@thatdudewithfacts Right okay, do you think you could copy and paste your code into the website down below, and send the link back here afterwards, that way I can take a proper look. Create more then 1 for different blueprints. blueprintue.com/
@Slax06
@Slax06 3 жыл бұрын
How to make it in multyplayer?
@israeloconnor7381
@israeloconnor7381 3 жыл бұрын
and yet another that i somehow screw up and doesnt work someone help me please
@MattAspland
@MattAspland 3 жыл бұрын
Hey mate, which part isn't working for you? I.e. is it out of sync? Does it not appear on screen? Is it not counting at all? Etc
@israeloconnor7381
@israeloconnor7381 3 жыл бұрын
@@MattAspland it isnt counting up it seems to stay at all zeros even though i set it to midday too Edit:I've rewatched the tutorial and everything seems to be exactly the same I'm so confused
@joker-jd3jd
@joker-jd3jd 3 жыл бұрын
Man, I'm Turkish, I don't understand your video, how do I make the time and the weather slower
@joker-jd3jd
@joker-jd3jd 3 жыл бұрын
Hey
@joker-jd3jd
@joker-jd3jd 3 жыл бұрын
Please let the sleeping system come but move forward in time
How To Create A Day And Night Cycle - Unreal Engine 4 Tutorial
17:43
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
The Best Unreal Engine Sample Project you've never heard of
9:10
I Made a GTA V Clone in 24 hours
14:47
reubs
Рет қаралды 7 МЛН
Изучаем Unreal Engine с нуля - Урок 17. Timers и Timeline
19:20
MakeYourGame! — Уроки Unreal Engine
Рет қаралды 4,6 М.
Enemies Only Spawn At Night - Unreal Engine Tutorial
10:08
Matt Aspland
Рет қаралды 4,3 М.
Epic's Unreal Optimization Disaster | Why Nanite Tanks Performance!
13:07
Threat Interactive
Рет қаралды 303 М.
Adding a moon and stars | Day Night Cycle In UE 5 | Part 2
29:32
InsertNameHereGameDev
Рет қаралды 13 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН