thanks a lot, this is exactly what i needed and i feel lucky i found your video. i had checked your other video about setting up the enhanced input system, and it was excellent as well. keep up the good work, and again, thank you.
Just wanted to leave a comment saying thank you! This helped me set up a line tracer for my top down game for rotating the character towards a specific point and clicking on stuff :) Much appreciated! It's a little unfortunate that screen position is not an available scalar in the new enhanced input system, but oh well. It's just gonna be one of those weird quirks of the engine I suppose.
Good :) What I would like to do, change the mouse pointer depending on the position of it from the character, if the pointer is at the bottom of the character then the cursor will be a down arrow icon, if the cursor is to the right of the character then the icon will change to the right arrow icon.
Firstly, thanks so much. I was wondering if there is a way to make this work for Orthographic camera as well? In perspective all is dandy, on Orthographic, the math just gets skewed I think. Thanks!
Chat GPT has got nothing on this tutorial. This helped to solve the problem I faced to move a character in the 3d world space based on the position of the mouse on screen.
A doubt: I actually have a condition where the mouse cursor will be shown if the condition is fulfilled and the mouse cursor can destroy actors when clicked upon or else the mouse cursor will stay hidden Is there anyway I can disable the mouse cursor working because the line trace is working even when the mouse cursor is not shown and is detroying the objects when I click randomly
is it possible to convert the line trace to a drawn spline? Like a real time drawing game? I would then like to use the spline to instance meshes along it. This tutorials a great start.
You don't need to create this yourself. There are two functions called "Get Hit Result Under Cursor for Objects / by Channel" (stole this from the TopDown template xD)
No, I believe you are wrong mate, its not the same. I just had to reinvent the get hit result under cursor by channel lol. Basically, I want to be able to click through the player character, like its not there, but I also want to be able to click on other characters (i'm using a base class character, from where player characters and enemy npcs will inherit) and not ignore those enemy characters. Sadly, the get hit result under cursor built in functions don't have the pin "actors to ignore". So I could only ignore the player character and the enemy characters, or don't ignore either, and if the camera was too close or I clicked on the player character, I wouldn't be able to move. So this tutorial was a godsend lol, thanks Matt!
matt please help, i tried to follow ur vid which was about on how to package my game, it worked but when i try to open it it don't open and hit me with a message "create process returned 2"
thanks a lot, this is exactly what i needed and i feel lucky i found your video. i had checked your other video about setting up the enhanced input system, and it was excellent as well. keep up the good work, and again, thank you.
Oh, man. I was way overcomplicating this and struggling to get it working. Thanks for this!
Just wanted to leave a comment saying thank you! This helped me set up a line tracer for my top down game for rotating the character towards a specific point and clicking on stuff :) Much appreciated!
It's a little unfortunate that screen position is not an available scalar in the new enhanced input system, but oh well. It's just gonna be one of those weird quirks of the engine I suppose.
Good :) What I would like to do, change the mouse pointer depending on the position of it from the character, if the pointer is at the bottom of the character then the cursor will be a down arrow icon, if the cursor is to the right of the character then the icon will change to the right arrow icon.
Wonderfull and educational tutorial as always Matt keep up the good work
thank you so much, you have no idea.
Thank you this was awesome
Thank you!! So useful!
Thanks Matt, I could see how you could use this for a rts. Pretty cool 👍
Clear, concise, and helpful :)
Thank you so much!!!!
Firstly, thanks so much. I was wondering if there is a way to make this work for Orthographic camera as well? In perspective all is dandy, on Orthographic, the math just gets skewed I think. Thanks!
Nice video but if u want to make a working door how do u make it solid?🤔🤔🤔
thanks ,help a lot
Keep up good work!
Theres an even simpler way to do this, by using a "Get Hit Result Under Cursor for Objects" node!
Chat GPT has got nothing on this tutorial. This helped to solve the problem I faced to move a character in the 3d world space based on the position of the mouse on screen.
A doubt:
I actually have a condition where the mouse cursor will be shown if the condition is fulfilled and the mouse cursor can destroy actors when clicked upon or else the mouse cursor will stay hidden
Is there anyway I can disable the mouse cursor working because the line trace is working even when the mouse cursor is not shown and is detroying the objects when I click randomly
Thank you very much always
Hey Matt. On FPS. Can you teach me how to make a realistic Chemtrails upon the sky?
is it possible to convert the line trace to a drawn spline? Like a real time drawing game? I would then like to use the spline to instance meshes along it. This tutorials a great start.
of course, line trace and add points to your spline
Do you need to drag the actor BP into viewport? Why I didn't get the red cube when I push the play button?
You don't need to create this yourself. There are two functions called "Get Hit Result Under Cursor for Objects / by Channel" (stole this from the TopDown template xD)
No, I believe you are wrong mate, its not the same. I just had to reinvent the get hit result under cursor by channel lol.
Basically, I want to be able to click through the player character, like its not there, but I also want to be able to click on other characters (i'm using a base class character, from where player characters and enemy npcs will inherit) and not ignore those enemy characters.
Sadly, the get hit result under cursor built in functions don't have the pin "actors to ignore". So I could only ignore the player character and the enemy characters, or don't ignore either, and if the camera was too close or I clicked on the player character, I wouldn't be able to move.
So this tutorial was a godsend lol, thanks Matt!
How to line trace in to sky sphere i mean pointing to sky. the hit result is always fail any work around to do that
I am just confused with the world location why it is the camera location?
👍
thank you i always wonder 🤔 how to do that
Hey could you make a simple ai vs ai where they recognize team and enemies
matt please help, i tried to follow ur vid which was about on how to package my game, it worked but when i try to open it it don't open and hit me with a message "create process returned 2"
Check if theres any software thats deleting any game files thinking as if it is a virus
If there is you can add your build folder to virus scan exception and try building the game again and run it
Hi
Thanks a lot!
Hello