Double Click to Dash in Unity (Unity Tutorial for Beginners)

preview_player
Показать описание
Learn how to capture Double Clicks and use them to trigger a special Dash.

If you have any questions post them in the comments and I'll do my best to answer them.

See you next time!

#unitytutorial #unity3d #unity2d

--------------------------------------------------------------------

Hello and welcome, I am your Code Monkey and here you will learn everything about Game Development in Unity 2D using C#.

I've been developing games for several years with 7 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

--------------------------------------------------------------------

Рекомендации по теме
Комментарии
Автор

Pretty simple video today but still something essential to know as well as a nice effect.
Stay tuned for tomorrow's video on Getting Started with the new C# Job System!

CodeMonkeyUnity
Автор

💬 Here is the Multiplayer Course! I really hope both of these FREE courses help you in your game dev journey! Hit the Like button!
👍 Learn to make awesome games step-by-step from start to finish.


🔴 RELATED VIDEOS 🔴

🔴 NOTES AND UPDATES 🔴


CodeMonkeyUnity
Автор

Finally a good tutorial after watching a dozens of bad ones, thx mate!

LukeHwarang
Автор

This is AWESOME but is there a way to hold the mouse button down on double click to do something and if so how?? lol I could really use it rn. Thanks for the video!!

audacityfilmsproductions
Автор

when i was doing this mechanic the problem i had was the first click of the double click, that triggers the single click function.

so my alternative was to do it with a corroutine and w8 for the second click if there was one but there was a little delay in every single click action
thats why inputs are really important in the game desing phase

apubetico
Автор

it is possible this without Mouse click? and with Unity new input system?

AstralNostalgia
Автор

How you create Player.moveto ? for me says I dont have a definition called Moveto

if you know, put the code to create please

vimare
Автор

Thanks for the video Code Monkey! That is very helpful.
But one thing has been baffling me! I tried to relocate 'lastClickTime = Time.time' before 'timeSinceLastClick = Time.time - lastClickTime'. Both lines are still within the same 'if function'. But the Debug.Log only shows 'Double Click!'
Can you please explain the outcome? I thought the order within the same function dose not matter?

TheFeing
Автор

u r really underrated thanks your videos helped me alot

burnobad
Автор

Extremely helpful video, Thanks for that buddy.

sheikhmohsin
Автор

hufftttt... this wht i mean.. nice work. thanks .

thegrey
Автор

When i write the " private Player player ", it gives me an error saying that Type or namespace player could not be found, can someone please help .

Dr.SouravBiswas
Автор

I am trying to do a special attack when double clicked and if the mouse is only pressed once then a simple attack. I keep having problems because the first click always gets called. Is there any way around this?

marofiy
Автор

Excellent video, helped me a lot! Could you give me a hint how I can accomplish it so that the doubleclick only counts when it is made on a specific object? I have to enlarge a picture when it is doubleclicked; however, at the moment the doubleclick is recognized everywhere I click and I need it to only be recognized when it is made onto the picture.

MrReese
Автор

how can we Separate normal tap and double tap? like if we did double tap don't count as single tap anymore

imChaosKing
Автор

ı want to dash when ı proess f in my game. How can ı game change mouse click to keybord button ? Thanks for video

lupinder
Автор

Can do the same script for 3D?

many thanks great tutorial!!!!

zubbag
Автор

Double click necessarily trigger a click? how to solve this problem

EngineCoder
Автор

How does the double input check change for input that uses horizontal and vertical axis that doesnt have access to GetButtonDown?

jvufxcy
Автор

Bro this vid helped me work out a problem I was having with my own version of dodging! In my version I was using a global key press timer for a, s, d and kept triggering the dodge if I pressed any combination of those 3 keys. Now I see that it's better to separate them. I assume that's the right away about it, anyway? I wanted to make my player dodge left, backwards or right.

gt
visit shbcf.ru