Unity 3D Tutorial - Generating Levels From Textures - Part 2 - Finishing

  Рет қаралды 2,821

GucioDevs

GucioDevs

Күн бұрын

Пікірлер: 18
@BoundfoxStudios
@BoundfoxStudios 7 жыл бұрын
very good tutorial and a very good base for something like this to make it more advanced :)
@PyxelFox
@PyxelFox 7 жыл бұрын
Just signed up on patreon :) hopefully you will mention me in the next vid
@GucioDevs
@GucioDevs 7 жыл бұрын
+Der PixelPlayer thanks for the support :)
@treborsz
@treborsz 4 жыл бұрын
Very good tutorial, and thank you very much for sharing it. Some changes to avoid calculating the position Color32[] pixel = textureToGenerateFrom.GetPixels32(); Width = textureToGenerateFrom.width; Height = textureToGenerateFrom.height; for(int x = 0; x < Width; x++) { for(int y = 0; y < Height; y++) { var pixel = textureToGenerateFrom.GetPixel(x,y); } }
@wcwrk
@wcwrk 7 жыл бұрын
if you want to avoid something like at 20:00: 1. separate your tilemap to layers and export them (*.pngs or *.psd for each blocks, coins, doors, creatures etc.). do not forget to use unique colors. 2. import your layers to unity like this: Resources/Rooms/your_room_name (you can have as many rooms as you want with unlimited layers. or you can change a tile sets for each different room) 3. add String[] variable and insert in the inspector your room name (or names). also, you can add a checkbox to enable/disable random room selection. 4. select a room from a String[] and load all its layers from a folder to an array. 5. loop through each layer and draw the correct tiles. why do you need to separate layers? well, maybe you need to draw a background tiles behind the coins/objects/creatures/doors/etc or something like that. you cant do it with just one layer image. i am not good at explaining but i hope you get the point, with some more coding you can extend it to a very powerful tool. but remember, if you have a huge amount of sprites as a separate GameObject - this is a bad practice and will lead to unity freezes or even worse.
@masterroshi2064
@masterroshi2064 6 жыл бұрын
Very awesome bro!
@fatihcorbaci
@fatihcorbaci 5 жыл бұрын
nice work
@AdamPodGaming
@AdamPodGaming 7 жыл бұрын
Gucio, what VS Code theme are you using? It looks awesome!
@flytothemoon50
@flytothemoon50 7 жыл бұрын
Love your Tutorial but somehow my terain not work properly and tile come up like random like this image.ibb.co/iybKS5/71.jpg
@flytothemoon50
@flytothemoon50 7 жыл бұрын
the left tile or tile_0 change with tile_4 and already checked it all same with the tutorial
@GucioDevs
@GucioDevs 7 жыл бұрын
hmmm.. Make sure the position of the LevelGen object is 0,0,0. See if that helps.
@flytothemoon50
@flytothemoon50 7 жыл бұрын
GucioDevs i'll try,.. thx
@flytothemoon50
@flytothemoon50 7 жыл бұрын
just sing up on patron and i will glad to be helper! if you can make tutorial from this into game like batland, realy want make game like that. The idea is same, player jump up to find the door before crused or fall into moving floor so we just need moving floor, player jump and finish door :D
@TheKabatas
@TheKabatas 7 жыл бұрын
Really clever. Thanks for the tut.
@AlexeySamokhin
@AlexeySamokhin 7 жыл бұрын
Thank you!
@everettgray6433
@everettgray6433 7 жыл бұрын
my Texture to generate from says that it isn't assigned even though I have dragged in the tile sheet from the assets folder :P
@everettgray6433
@everettgray6433 7 жыл бұрын
nevermind, I had the sprite sheet in the "Texture to generate from' slot :D it's
@MarxTM
@MarxTM 7 жыл бұрын
👍 niceee
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 14 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 26 МЛН
AWESOME Plane Game for #LOWREZJAM
5:45
GucioDevs
Рет қаралды 6 М.
2D Drop Shadow Effect Using Sprites in Unity 3D - Tutorial
10:46
SUBMARINO GAME - Finishing Wall Fish - Live edit - part 2/2
22:56
I made ROCKETS for my game! - Submarino Devlog 7
11:32
GucioDevs
Рет қаралды 4,4 М.
Unity Tip - VERY USEFUL MinMax Range Slider Attribute
4:15
GucioDevs
Рет қаралды 22 М.
The GIGA JUKE is dead.
28:02
Mend It Mark
Рет қаралды 70 М.
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 14 МЛН