Need help with puzzle game

Hello all,

i am new in unity and i have to create a puzzle game like:

i had searched for many of the forums and all but can’t even find the way to start with the app.
any thing will be very much helpful for me.

Thanks in Advance!
Niki.j

In your other topic I already helped you with your question how to make a grid and you didn’t even say thank you, or let me know how it turned out. Now tell me why should people help you.

hello Willemsenzo,

i am sorry for that.i have not checked that earlier.
thanks for the help man.

today i had check that and uploaded the exact code for the creating a grid.

Thanks!
niki.j

Hello Willemsenzo,

thanks man,and sorry too for not replying you on your last post.
i checked that by today only.i have uploaded the exact code for creating a grid there.you can find that.
Thanks again for the help.and i hope you will continue with you posts that can help me and other too.

Thanks!
Niki.j

Hello all,

i got the code for the game tetras,that can help to create the game that i asked above.
you can find the project here:

please update here if any one got anything helpful to create the game.

Thanks in Advance!
Niki.j

I saw the first link you have posted

using grids is fine and you can do it but I think you can be creative with unity and use rigidbody to make the object fall with gravity.(it worked once I tried to make a similar game)
and you can also use raycasting to detect collision(I tried that I also worked).

that was just for fun and I never looked back to those projects after that.

thanks man,

thanks for the suggestions, the things going fine for me,but i cannot find how to match the colors and then how i can make them reached to each other if there is space in between them.

i will be very thank full for any help.

" how to match the colors and then how i can make them reached to each other if there is space in between them."

when I was doing this I had bubbles (spheres with trigger component attached) and I also wanted to have some particle spawn whenever the the bubbles are blasted.

So all I did was added the particle system(legacy particle system) in a gameObject (to get the particles) and also attached a small script to it and turned that into a prefab.The script did nothing more than to carry the color. Since the bubbles had trigger component, whenever this particle gameObject (with the script attached to it) entered the trigger of bubble, inside OnTriggerEnter I checked if color of this bubble is same as the color that was carried by the script.

that solved all the problems you mentioned plus particles effects are always cool and all I did was single line of code to copy the colors and single line of code to move it is any of the 4 direction.