Swipe Detection in Construct 3 + Project Files

Опубликовано: 14 Октябрь 2024
на канале: Ali at DoonDookStudio
1,629
47

Download the source file from here:
https://drive.google.com/file/d/1DV6B...

Hi guys,
Hope you’re doing well!
Today I’m here again with a functional and simple trick in Construct 3 called Swipe Detection. In mobile games that the user does all the things by swiping his finger on the screen, it’s really important to understand what the user wants to do and how he wants to do that. In today’s video I’m going to tell you how to understand which direction the user wants to point and move the character, or which side of the game he wants something to happen.
If I want to talk more technically, I should say that I save the start position when the user touches an object and when he swipes his finger, I distinguish the angle of his movement to the last point ( touch) with the Construct function, and I pick the next square in the pointed direction. This work can be easily done for hexagons or other shapes too.
If I want to speak of other subjects you will learn during this video, I should mention:
Detecting swipe for square, hexagon or any other shapes
Using “Pick overlapping point” for picking next object
Using sin & cos for picking the next object in an easy way

Finally, DoonDookStudio’s team always wants to share their knowledge of game making with interested people. You can help us to make our network bigger and grow by sharing our contents with your friends and subscribing to our channel. So we will meet new people and they will learn new things from us!

👉 Discord:   / discord  
Website: https://doondook.studio
YouTube:    / @doondookstudio1530  
Twitter:   / doondookstudio  
LinkedIn:   / doondook-studio  
Instagram:   / doondook.studio