Hey, so i’m trying to make a game where i kill enemies by sliding the mouse over them, is that possible? and how would i do that? im new to unity, trying to learn the basic stuff.
Thank you!
Hi @ , welcome to the 2D forum.
This is 100% possible. You can check out some beginner-level tutorials on our Learn page: Learn
You will find there lots of useful materials.
If you have more questions about how to get started with Unity, you can post them in the Getting Started forum.
Sure, this is quite basic. All you’d need is a way to detect mouse hover over objects (like enemy bodies).
I believe the following is the unity-provided API you’d use to detect mouse hovering > Unity - Scripting API: MonoBehaviour.OnMouseOver()
It takes like 20 seconds to implement hover detection.
1 Like
Thank you very much!
Thank, i’ll give it a read. ![]()