Тёмный

05 Edge Scroll [UE5 - RTS Remaster Series] 

TwoNeurons
Подписаться 7 тыс.
Просмотров 2,1 тыс.
50% 1

Опубликовано:

 

16 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@cursedbishstudio
@cursedbishstudio 9 месяцев назад
and we are back !!! woohoo!
@NoQueso_
@NoQueso_ 4 месяца назад
Amazing tutorial as always!
@sendos11
@sendos11 3 месяца назад
Fantastic. Thanks.
@Alcibiades101
@Alcibiades101 4 месяца назад
exciting stuff, thanks man
@plExEFile
@plExEFile Месяц назад
Very cool tutorial. Not many cover this type of edge screen movement. I have a question though. When I move my cursor top or bottom it actually moves closer and further away from the ground instead of actually panning. Any help?
@oleksandrkochetyha9056
@oleksandrkochetyha9056 5 месяцев назад
hey @TwoNeurons, thanks for the video! Just a quick question: why are you applying MovementSpeedModifier for a single axis only? In video 7 after adding SpeedModifier event I can notice that edge corner scrolling speed is uneven (camera moves quicker in X axis than in Y, that is kinda obvious since the speed modifier is applied for X only).
@tucaja1240
@tucaja1240 4 месяца назад
the best
@chaselewis5372
@chaselewis5372 5 месяцев назад
Good stuff, think the movement should be relative to the camera direction though as global X/Y aren't guaranteed after panning or with certain Camera starting orientations. This is pretty simple with some vector math (added it myself), but for others you can do a cross product between Vector Up (Z-axis) and the Camera Right Vector to get a Y-dir parallel to the landscape plane. Use the Camera Right Vector as your X-Axis. Using these coordinates things will behave correctly no matter the camera orientation relative to the level.
@TwoNeurons
@TwoNeurons 5 месяцев назад
If we were panning the camera itself (and not the entire actor as is done in this series) then that those errors would occur (this set up, of just panning the camera, and the solution you suggested are covered in the old version of this series). As, in this version, the entire actor is being panned, the absolute/world values are always valid (unlike the previous version of this series, where I just pan the camera). For comparison check out video 4 in this series (where we pan the actor instead of the camera) and videos 4 and 5 in the last series (where we pan the camera instead of the actor). That said, if you can find an edge case in the set up from this series (in video 4) where the panning the actor breaks the absolute values in some way - let me know so I can replicate it (as I have used this particular approach in professional projects and have yet had a client report an issue, but clients often miss things like that and would be good to know those edge cases).
@milosnikolic3136
@milosnikolic3136 3 месяца назад
@@TwoNeurons Hello, I have edge case where I set up rotation for actor instead of world rotation and it still inverts my edge scroll. Sorry, I'm completely new to UE so I'm maybe off the point here.
@milosnikolic3136
@milosnikolic3136 3 месяца назад
All though I have different implementation for edge scroll
@milosnikolic3136
@milosnikolic3136 3 месяца назад
Resolved it with combining world rotation not actor rotation to set new actor location
@plExEFile
@plExEFile Месяц назад
Can you please explain how you fixed this? I cannot follow your high level explanation from above unfortunately.
@cursedbishstudio
@cursedbishstudio 10 месяцев назад
Can we please stop the edge scrolling when the mouse pointer is not on the view port? so if we tab out of the game while playing the screen doesn't run away to the top left.
@TwoNeurons
@TwoNeurons 9 месяцев назад
Make sure lock to view port is in, otherwise we have to do some complex stuff
@cursedbishstudio
@cursedbishstudio 9 месяцев назад
cheers Z :) @@TwoNeurons
@salimmassayev316
@salimmassayev316 7 месяцев назад
I guess outside boundaries are perceived to have negative coordinates (the top left drift), so i added an extra condition for top, top left, and left edge scroll to check if the coordinate is a positive number (e/g x< 0.025 and x>0).
@chaselewis5372
@chaselewis5372 5 месяцев назад
This is easily solvable by doing another branch against the boolean value returned by 'GetMousePosition' it will return false if the mouse is outside the bounds of the game window.
@ikmess5506
@ikmess5506 7 месяцев назад
Hi! Loving this series. so whats happening for me is when i edge scroll on the top the camera goes to the right and when it is on the bottom it goes to the left. I rewatched how you did it several times and i cannot figure out what i am doing wrong. I am trying to troubleshoot but i am at a loss
@TwoNeurons
@TwoNeurons 7 месяцев назад
Sounds like the proportion checks might be off slightly or the X and Y values were not transposed like they should be (it is going to be one of those two) OR you are off the screen (to test this set your mouse to lock to viewport, if the issue persists then it is one of the first two). If it the latter, that is because once the mouse leaves the viewport it freaks out and has no idea where the mouse is and gets junk data (junk in, junk out) - really should lock to viewport to prevent this in general.
@chaselewis5372
@chaselewis5372 5 месяцев назад
It's likely your camera is facing 'forward' along the X-axis and right/left on the Y-axis. This implementation in the video doesn't take into account the direction of the Camera to determine what is 'vertical' or 'horizontal'. Takes a bit of vector math to figure that out though.
@DGlen-n5j
@DGlen-n5j 8 месяцев назад
No matter where my mouse is it disables normal movement and just continuously scrolls to the left until I hit escape. I think this same thing happened to me on other scrolling rts tutorials and I believe it might be some setting that needs to be flipped? On another note I got a compiler error because I already had the Mouse X event in use or Pan Camera, so I just added a sequence to it.
@TwoNeurons
@TwoNeurons 8 месяцев назад
Ouch. Okay so that's pretty detailed. Do me a favor, and send me screenshots of your edge scroll? You can do it iny the community server, link in the description!
@ThomasKrogh-y6i
@ThomasKrogh-y6i 4 месяца назад
can you please tell me the solution
@lziane2203
@lziane2203 5 месяцев назад
so the edge scroll function now but idk why my arrow keys don't work now does somone know why
@davidleclair4524
@davidleclair4524 5 месяцев назад
Hey, did you find the problem, i have the same
@lziane2203
@lziane2203 5 месяцев назад
@@davidleclair4524 actually their is a solution but it's longer to fix it i create a new camera movement system but I bind my arrow keys to move it, it is longer but it work at 100% there is a lot of tutorial on the web don't worry. I hope you will find here an answer to your question my friend have a nice day david
@BlueBiscuits03
@BlueBiscuits03 2 месяца назад
I fixed it by unchecking the 'disable camera movement' on all the edge scrolling nodes, hope this helps
Далее
09 Game Clock and Calendar [UE5 - RTS Remaster Series]
26:23
07 Map Boundaries  [UE5 - RTS Remaster Series]
13:59
Просмотров 2 тыс.
PUBG Mobile СТАЛ ПЛАТНЫМ! 😳
00:31
Просмотров 219 тыс.
This is my new favorite map maker.
8:30
Просмотров 188 тыс.
10 Day Night Cycle [UE5 - RTS Remaster Series]
17:43
Просмотров 1,4 тыс.
08 Game Time Library [UE5 - RTS Remaster Series]
13:29
Просмотров 1,8 тыс.
Why Solo Developers Should Use Unreal
9:51
Просмотров 398 тыс.
12 UMG Functionality [UE5 - RTS Remaster Series]
58:17
Просмотров 1,8 тыс.