How to create Sliding Puzzle in Unity - Part 1 (Setting up and Basic movement)

preview_player
Показать описание
Finally I uploaded this video , I will upload the next part soon
If you have any question ,ask it in the comments, I try to answer them!

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

I am a college student who is developing a game in Korea. Your video is so kind and detailed. Thanks a lot. God bless you.

hyunahjeong
Автор

15:02, this point is crucial for beginners

Thediamond
Автор

Very simple approach, I was instead thinking of creating an array, move array numbers and make tiles copy array positions. :)

mfkhan
Автор

I just got started on making my own n-puzzle game, and I find this tutorial well-put, although the only problem I have is that I had to start mine from instantiated tile prefabs instead of what's already in the scene, and the minor issue is that I couldn't get them to work properly at the moment and the tiles kept on going to the center of the board instead of the empty space I made, partly due to the prefabs' pivots.

Zyugo
Автор

to solve the problem with the number write this: Mathf.Sqrt(2) - 0.01f. You calculate the diagonal minus a little number, so you can move the right pieces

martinataningher
Автор

Hi, any help? I want to make the game with canvas, that is, the tiles to be images, how can I make the script in such a way to select them, I've been searching on the net for a day, but I can't find anything that works for me.

cristianilisei
Автор

thanks man, great stuff, gonna be super useful in the game im building!

SoupBaaaaby
Автор

hi sir, can you shere where to download me the Sprites like you use. i want to use the same sprites like you

jihadpurnomo
Автор

Im trying to make a puzzle minigame like this but in 3d space for a bigger 3d game project but when typing
RaycastHit hit = Physics.Raycast(ray.origin, ray.direction);
i get the following error:
error CS0029: Cannot implicitly convert type 'bool' to 'UnityEngine.RaycastHit'.
Do you know how to use your script for a 3D puzzle game?

ellid.
Автор

why is the tile is skipping even though, if (Vector2.Distance(emptyspace.position, hit.transform.position) < 2) is set, I tried different number it always skipped

eugeneguerta
Автор

Thanks for this tutorial. Can you share with us the background, the tile and the sprite pics?

waillights
Автор

Can You plz tell me how get this type background and how to get the numbers

rahhai
Автор

can i get the code for more than 1 empty space

ansarqureshi
Автор

It's not good tutorial very bad ...Sorry bro because where can I get all the asset you add

programmatore
Автор

its really bad video, you are explaining so fast and i didnt understand anything

samisonmez
welcome to shbcf.ru