Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey bro can you please reply. 

(+1)

Ill give you the steps how to produce the effect of going from 2D to 3D and back. Also the script here. Gimme some time. Currently I have to attend work as well. Also ill link a the github if u want that.

Thank you very much. yeah you can link it. You now  though you have copied the idea but making it from scratch by yourself is great.

(+1)

Ya, even though the Game's idea is literally the same. It was difficult to come up with the calculations where the plane and the cubes intersect, finding the edge points, then using GL.Draw on that. 

It can be easy to claim its copied but I had no source code to look at. I came up myself how to transition between 2D n 3D. Anyways enough rant. Ill send you the link as soon as I setup the github. Sorry for the delay.

no problem

https://github.com/YashArvindPatel/Think-Big---GameJam-Entry

Go to the Assets -> Scripts -> Mapper3Dto2D if you just want the logic for 2D to 3D transition and vica versa.

If you attach this script to any cube. When it collides with the plane, the coordinates of collision are captured and GL Draw is used to map them as a basic 2D primitive shape. 

Also the Camera's render distance (fieldOfView) is lowered. I went with this instead of using a Shader on cubes because I have less experience with Shader scripts.

If you have any questions you can ask me no problem.