Комментарии:
Thank you for awesome tutorial!
And I saw some guys saying like this
"When I click/place the house it doesn't seem to paint the tiles green "
For this guys, I think you can solve it by making Resources folder in your Assets Folder.
In this video,
string tilepath = "@Tiles/ " and
Resources.Load<TileBase>(tilePath + "white")
this means they call Tile(named "white") in "Tiles" Folder in "Resources" Folder.
sry for my poor expression :m
I mean... Assets/Resources/Tiles/"tile name you want to call"... this!
I hope it helps you.
Can you make a tutorial on a map like Mount & Blade that has a menu to enter cities and markets? I think it's a bit difficult, some say
ОтветитьHello,
Thank you for all the videos, that must be a lot of hard work.
I am following this one and I get a weird error within the FillTiles function saying that "TileBase[] does not contain a definition for 'length'"
Can anybody give me a hint for that ?
Thanks.
NGL, this tutorial just single handedly showed my how to make my code read-able. I had no idea you could create sections in the editor for methods. Thanks for the help!
ОтветитьHey!
I was wondering how to make that building could only be moved by gragging, I mean that if you just click somewhere building wouldn't teleport there.
How us this for 3D?
ОтветитьCan you please elaborate on "make it a prefab"? I do not see how you did this step. With both objects selected, I right click and my only "Prefab" options are "Select Root" and "Unpack".
Ответитьmoving object on mouse click not working !!...is it 'cause i made a 3d project??
ОтветитьThanks for the awesome video
I have one question though, I am making my game for mobile and instead of the space bar placing a building, how do I make it so my "place button", does that instead?
Sorry to ask this but:
How would one go about only having white tiles around green/red tiles? I want a system that requires you to "connect" all of your buildings, so I need to check if the nearbvy Space is red/green before beeing able to place something on the white tile there.
I love you so much~ :) Marry me plz
Ответитьawesome tutorial!, Do you have one on how to create isometric water with reflections and everything?
ОтветитьAwesome Video Tamara keep em comin! For everyone else here is a heads up!
IMPORTANT: The tile system is case-sensitive
This means that...
If you type "Green" on the tile asset in the project folder
and then type Resources.Load<TileBase>(tilePath + "green")); " in the start code then it won't work!
If you type "green" on the tile asset in the project folder
and then type Resources.Load<TileBase>(tilePath + "green")); " in the start code then it will work!
Hopes this helps someone!
Thank you for the tutorial!!
One suggestion: Could you make your mouse pointer visible? It's kinda difficult to catch up where you're clicking
How do you save your changes to tilemap?
ОтветитьA few issues with your video and its mainly your skipping over parts, sharing only your pre-made assets and rushing through everything which is hard on people with such as audio and visual impairment. 1) You are not showing HOW you made the "ART" or how to measure the Asset sizes. You do that with the Grids, you need to do that with the ART meant to align to the grids.
2) If your going to show scripting as part of the tutorial you need to take it step by step without rushing through it. This also means if you are granting usage of the code and implying its in the project, it needs to be in the github, not used as a lure to get someone to have to join your page to have access. That is very misleading to people and you should consider stating in this on this page 'SCRIPTS NOT INCLUDED WITH PROJECT ASSETS.' Good luck.
Very intresting build out system, I learned a lot from it. Just a question how would you go about sorting the gameobjects that you have instanitated? At the end of the video you clearly have a system when you are moving the trees. Thanks in advance!
ОтветитьCreating an empty object and adding it the sprite caused the prefab and the sprite to be instantiated at different positions for some reason. I just skipped using the empty object and used the sprite as the building object
ОтветитьI couldn't find the code in the github.
Ответитьcould you make a 2D platformer in unity series
ОтветитьHi, great tutorial! It worked great. I wanted to leave a comment because I am still a bit new on the Tilemap system and I made a novice error. I mistakenly placed the tile SPRITES on the resources/tiles folder, and not the tile object that generates from the tile palette. Hope this helps someone else!
ОтветитьSo this whole thing will work no matter what our grid size is?
ОтветитьThank you! This tutorial was very helpful for me! :D
ОтветитьI love your style: quick action and normal speed say, the time is very compaction!
ОтветитьHey! Awesome tutorial, but I have a small question. This works for the objects I want to build, but if I want to generate objects on the grid (for example trees or rocks) how can I make them part of it? (Also dunno how to instantiate prefabs in random positions connected to the grid XD).
Ответитьthankyou soo much :)
Ответитьdoes anybody know what should i need to learn before watching this tutorial again ?
ОтветитьAwesome video and Thank You for doing it. I'm completely new to coding in unity and would like to take this specific project and make it with mobile touch controls instead. How would i go about doing that? I tried following your hayday videos but the code is too different and so much more than what i needed to understand how to do this. I'm such a noob. Thank you again.
ОтветитьHow do building move with the mouse?
ОтветитьHi o/
This Video really helped
Thank you for making this tutorial !
It was nice to realize you have now 5.5k subs and in the video it's only 152, congrats!
ОтветитьAwesome.. How do you remember those code?... I think is hard to learn Game Dev instead Web dev...
Ответитьi really like your tutorials, but pleaaasee, get into some details, like how you create those sprites called tiles.
ОтветитьHi I'm glad to see your Video. your video is Awesome!
I'm sorry it's too late to ask, but I have a little problem in this tutorial.
when I press Escape key after building placed, the building is destroyed but the area is remain.
so I can't place another building in this area.
I hope you can answer my question.
They way you say everyone almost sounds like my name which was disconcerting.
ОтветитьHi!
First, thanks for the video.
It is really informative. I tried to port the tutorial to a 3D space and discovered a weird behavior. When clicking to move the building around, it only moves upwards (along the y-axis), no movement at all in the plane space (neither in x- nor in y-direction). I already tried to play around with different Vector2 and Vector3 assignments, unfortunately without any luck til now.
May someone kindly give me a hint what to do to stick the building to the ground and move it along the x-/z-axis?
Thank you! Awesome tutorial ;)
ОтветитьI'm halfway through the tutorial but stuck with the 'EventSystem.current.IsPointerOverGameObject' check. It always returns false. I've tried by adding a collider to the sprite and changing the sorting layers and order but nothing is working. It instantiates the sprite but doesn't recognize it with the pointer... Does anyone know what I might be missing?
ОтветитьHi! May i ask, where you put the "FillTiles" and GetTilesBlock" ??
Ответитьsorry for asking, maybe I'm late but I followed the tutorial one full day straight and it's still not working... i don't know why... should u please help me?
Ответитьhow can I add touch camera movement and zooming? also how can I make it for mobile instead of computer (i know I have to switch platform from windows to android/iOS but I don't know how to change inputs)? btw thanks for the awesome tutorial. maybe I'm asking for too much but I hope u can help me
ОтветитьHi! You really helped me a lot! But I didnt understand how to replace a building after it was placed. From what I`ve tried, I replace all the buildings that I placed so far instead of the single building. Can you explain please how you did it or can you make a video about it? Thanks a lot!!
ОтветитьCan i use this code for my 2d project with 2d flat tilemap. where should I change in this tutorial?
ОтветитьIf I wanted to paint the building prefabs onto a tilemap instead of instantiating them as game objects, how would I do that? Thank you for the tutorial!
ОтветитьWhere can I download this hole project file?
ОтветитьWhere to copy the coding part?
ОтветитьI must be missing a step. in the update function
if(EventSystem.current.IsPointerOverGameObject(0)){
return;
}
console says that the name EventSystem does not exist in current context. am i missing a using directive or do I need to declare a new eventsystem?