Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
1 messages · Page 1 of 1 (latest)
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Isometric Mouse Movement in Unity Tutorial using the NEW input system.
📥 Get the Source Code 📥
https://www.patreon.com/posts/isometric-mouse-38744509
🔗 Relevant Video Links 🔗
ᐅMaking an Isometric Tilemap with Elevations and Colliders in UNITY
https://youtu.be/_TY0F7Zm6Lc
🤝 Support Me 🤝
Patreon: https://www.patreon.com/samyg
Donate: https://ko...
I'm sorry but I can't figure out a point where it could be wrong, since I followed it to the end and realized that clicking a tile just didn't do anything. I will now add a screenshot of my situation in Unity. Please ask me everything you need to know to help me
If it seems too vague I would also appreciate if you could tell me where the error may lie
I haven't done this one, but I'll see what I can manage.
Have you gone through the tutorial a second time? I kinda need to anyway, so you might as well
But first off - can you explain how it is supposed to work, in practical terms?
When the player clicks on a tile, the player should go to it thanks to the move towards function, only if there is a tile in that position.
Right now the player character doesn't move at all
Nothing happens?
post links to all the scripts
if you want to know if a certain segment of code is running, add Debug.Log("This part is running") or whatever makes sense
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Alright, thanks
I was used to std::couts and didn't know how it worked here
this is the only other script right now and it was auto generated like the video indicated
hm, alright, then this might be easier to debug
I just haven't used the new input system 😂
should I use it like this? It's highlighted in red. I'm sorry for knowing so little
Maybe I could print the movementSpeed value to know what's up?
code in the class doesn't directly run - code only runs inside a function / method
Place the debug log next to code that actually runs.
logically, you want to see if the compiler reaches a specific Line in your code
Debug.Log prints out a message in Unity's Console, which tells you that it has run, and whatever other information you want to include
void Awake()
{
Debug.Log("Awake is running");
}
you're so right my bad, I forgot this being inside a class because of how lost I am
it's alright. I'm well aware of how lost one is when starting out with Unity.
so I did this, but the actual value of movementspeed isn't printed
thanks for your patience
oh you're right, I'm sorry I can't even read the log properly
lol
yes, it's supposed to be that value
good stuff
here I set the movement speed and the tilemap it should interact with, which is ground level
Which Unity version are you using, and have you installed the Input System package?
I have installed the package
Unity 2020.3.25f1
I think it's the 2020 LTS
It is. Good.
I think I found your issue
on Line 43
video timestamp: 11:58
see if you can spot it
thank you so much! let's see if I can figure it out
in your script, it's more like Line 50
indeed
Vector3.MoveTowards() calculates the positions for the movement. But you didn't apply it to anything.
I watched all the previous parts and didn't think of it I feel so dumb
welcome to programming :)
Thanks so much for your time! you are great