You made it so easy I'm speechless. You showed so many useful features, thank you a lot. Also, congratulations on publishing your book!
@Kidscancode6 жыл бұрын
Thanks!
@NeilRoy5 жыл бұрын
Excellent video. You pace your presentation really well. I just wanted to compliment you on that as I find that some people can ramble on about a topic too long where I find that you explain everything as needed and you spend the right amount of time on each without overdoing it. Well done.
@Kidscancode5 жыл бұрын
Thanks!
@Any_key4046 жыл бұрын
Informative as always. I, personally, still love split screen and being in the same room as the people I'm playing with. I'd love to expand on this and set up a small game with two controllers so my kid can experience the joy of getting poked in the ribs as a "legitimate strategy" for catching up to your friend in game.
@EricDaily3 жыл бұрын
Your tutorials are by far the best. Every one covers like exactly the things i was hoping it would. Thank you
@tiggerbiggo5 жыл бұрын
Wow, I was blown away when you did the viewport snapping and they both just take up half the view, so simple!
@bitbionic17976 жыл бұрын
That was a fantastic tutorial! Great job! I didn't know about the transparent background on the viewport! Really helpful.
@frankwenner87826 жыл бұрын
It seems like whenever I have a question in my head you make a video on it.
@noohalavi38705 жыл бұрын
This is exactly what I was looking for KidsCanCode! Thanks! You always have a video of whatever I need! Thank You! You just earned a like!
@MattHuisman6 жыл бұрын
We have missed you! Thanks for another great video.
@Kidscancode6 жыл бұрын
Yeah, between finishing the book and a taking a small family vacation, I haven't had any recording time in a while. :)
@upyours27076 жыл бұрын
thank you Chris! i bought your book today. i am facing a 4 hour long flight today and can't wait to read it. wohooo!
@Kidscancode6 жыл бұрын
Thanks!
@gameplayandreview5 жыл бұрын
Great piece of work, can you make for 3D too?
@mrpedrobraga2 жыл бұрын
in 3d, simply use World instead of World2D!
@shaynecrist5 жыл бұрын
So, nothing shows up unless I manually set the size of the viewports for some reason. But even then things are stretched and don't look right. Shouldn't they automatically be sizing themselves based on the parent viewport container? I'm guessing something released in a recent update broke something. How would I go about making the viewport automatically resizing themselves to the correct ratio depending on the parent containers?
@Crisisdarkness6 жыл бұрын
Wow this is great :), thank you very much for this excellent tutorial. I have a question, are you working on a book about Godot 3.0?
@Kidscancode6 жыл бұрын
Indeed. It was just published. You can find it here: a.co/eNDRbL0
@Any_key4046 жыл бұрын
If I buy the Kindle book will it include any errata or updates (Typo fixes and such)?
@Kidscancode6 жыл бұрын
Yes - there's an errata page that will show any changes or additions. I'm not sure how often the publisher applies these to the ebook download, but I'll try and get that to happen as often as possible.
@Crisisdarkness6 жыл бұрын
Dear Chris, it would be nice to know about that update, I am also interested in buying it, but I would like to be able to read it with the corrections already incorporated, thank you very much.
@Kidscancode6 жыл бұрын
I don't really have control over when the publisher will make updates, but there are hopefully not too many. :) I'm aware of three currently which I'm tracking in the code repo here: github.com/PacktPublishing/Godot-Game-Engine-Projects/blob/master/errata.md
@sorrowseal6 жыл бұрын
You make such an amazing and high quality tutorials! I wonder if you could make a tutorial on online multiplayer, specifically for Steam.
@stupenrio24983 жыл бұрын
thank you so much i was struggling with this for three days
@jugibur21172 жыл бұрын
A great help for me understanding the viewport concept, many thanks!
@NeilRoy4 жыл бұрын
I added lighting to the character (light2d with texture) and I noticed that the left side of the screen is brighter than the right. At first I thought it was just the left character, but then I noticed when both characters appeared on the left side, both were brighter. I am curious as to what might cause this? Try it yourself, you'll see what I mean. I deleted my project and reloaded yours and then added the lights to it and it was the same problem.
@Liam-pf7ih6 жыл бұрын
how can i display a camera's view in a 3d scene with viewport so that the viewport isn't in the 2d world but is a plane in 3d that displays a cameras view
@morris46224 жыл бұрын
I don't know why but when I put the instancing of the world they only show me a black screen I set all the screen color to be green so there shouldn't be any black
@faKeviolet693 жыл бұрын
Man thank you very much, I was looking for a resolution to my minimap problem, and this can help me a lot. Sorry for the English, I'm using google translate lol
@JB-xb3of4 жыл бұрын
Is it possible to change the shape of a viewport?
@ZephB5 жыл бұрын
This doesn't work. It is just giving me black screen side by side
@davidmurphy5634 жыл бұрын
I'm having trouble assigning the world. I have a large 3d scene, I want to keep the existing main camera but add sub-cameras. I tried `viewport.world = get_tree().get_root().world` just to assign the world viewport node but no dice. Don't know why not, I passed the world obj... Maybe it's recursive somehow. This is already within my main scene so I can hardly drag the main scene to be a child of it. I can't just put the camera as the root, my main camera is on a gimbal with a StretchArm, reparenting interpolation and all sorts, I just want to add mini viewports without disturbing what I have.
@mychannel-tamil38383 жыл бұрын
Hi can you help me pls I made a split screen using your idea but now I need to play a video file(Cutscenes) in both screens at same time plsss reply fastttt
@oliver50864 жыл бұрын
What is world_2d it wont work
@btmofmyheart4 жыл бұрын
i am facing this issue Invalid set index 'target' (on base: 'null instance') with value of type 'KinematicBody2D (player2.gd)'. and i did everything correct any help?
@thawinchalermdit3 жыл бұрын
mines don't display two screen when i add the script and it doe not even display the viewport1 and 2
@monikamagori7954 жыл бұрын
How can you do this in version 3.2.1?
@Kidscancode4 жыл бұрын
The exact same way. This project runs in 3.2.1 without any changes.
@monikamagori7954 жыл бұрын
@@Kidscancode Thank you, the Problem was my Computer.
@youssefal_janaby3250 Жыл бұрын
I want to make a game that can be played by two players using one computer with two ps3 controllers. Is this possible?
@secretbigbill2469 Жыл бұрын
Yes, just change the input map to PS3 controls
@JonnySamSam5 жыл бұрын
How would I do this in 3D? I tried with a 3D game and it did not work. It just had two black screens side by side.
@Kidscancode5 жыл бұрын
Did you include a Camera in each Viewport's world?
@JonnySamSam5 жыл бұрын
@@Kidscancode Is it possible to do it without creating new cameras? I already have two cameras set up for my characters which scroll in and out when obstacles block their way. Thank you for wonderful tutorials!
@honesthamster2 жыл бұрын
this is a great tutorial it really helped a lot, btw I was thing how can I make the camera 1 on the top and the camera 2 on the bottom just like Mario cart on N64
@nerdzmasterz54174 жыл бұрын
I get a black screen. Not sure why.
@rednewdev5 жыл бұрын
Managed to do it after set the size of viewport, for some reason it was turned off in godot 3.1
@ziggyzoggin2 жыл бұрын
So I have a question. This doesn't really work well for drones. I want a 2d game where you can build drones that have cameras on them and then you can see through that camera. this wouldn't work for instancing and deleting drones constantly and would be near impossible to do in code like that. is there a way that viewports could work like that in 2d? Rant section: why can't we have decent viewports in 2d?? In 3d you can make a camera and have it render to a texture easy peasy. in 2d you can't it just doesn't work for no reason. everything else about viewports works fine in 2d like having a different scene be rendered on the screen. I've made tvs in 2d before easy peasy. but no drone cameras. AARGH!! its so frustrating because if it works in 3d, it should be easier in 2d!! I don't know the code behind the scenes of godot but it seems like they intentionally did that
@daywalkertpify3 жыл бұрын
This is gold. Thank you very much!
@BrownieX0016 жыл бұрын
Amazing! I have asked for this and you delivered. Thank you so much.
@redps86116 жыл бұрын
can you do tutorial on movement on a static curved body like a circle, for example: player are stuck to a tile(static)and can only move around the tile o - player, = - tile o====== player can move around the tile
@Kidscancode6 жыл бұрын
Just make the player a child of a Node2D and rotate it. Aside from that you'd have to be a lot more specific about what you're interested in doing.
@redps86116 жыл бұрын
something like this imgur.com/g3fHcOj
@MsKocagoz6 жыл бұрын
Bro you are the best at Godot
@DivLionheart4 жыл бұрын
Thank you for the awesome tutorial.
@karatecube38156 жыл бұрын
Perhaps a unity tutorial or two? I would love to see a 2d platformer tutorial for unity C# specifically, you make the some of the best, it can also help bring more people to learn blender, your choice, though.
@Kidscancode6 жыл бұрын
There are a ton of Unity tutorials available, including many 2D platformers, so I'm not sure there's anything I could add. I'm also not really interested in working with Unity - I prefer open source tools. I'm not sure how a Unity 2D platformer tutorial would help bring people to Blender...?
@karatecube38156 жыл бұрын
Okay, thank you. I meant that Unity usually has to do lots with blender, not 2d. Sorry from not making that clear, I found that most on godot don't mention blender often, but that may have changed recently.
@Auguste.Lefort6 жыл бұрын
Amazing tutorial ! It is super helpful (and kind of easy ! thx Godot :D) In a lot of game the minimap is stylized and minimalist how can we achieve that with this principle ?
@Kidscancode6 жыл бұрын
You'd probably want to have your minimap use a different world from the main map and do a translation between the positions of the "actual" players and their representation sprites in the minimap. It would be a little bit more complex than this example. Good idea for another video though! ;)
@Auguste.Lefort6 жыл бұрын
KidsCanCode Yeah it will be interesting I think ! Thanks for replying, I'll try this out !
@Amipotsophspond4 жыл бұрын
before I found this video I was trying to do this with singletons. I didn't realize .instance() was create a new object. I incorrectly thought .instance() made a new instance OF the object singleton. I was checking for missing -1 tiles to see if a player fell off the map but I had multiple scenes of tile maps on top so the players that should be 1 player would hit a -1 empty tile on a map bellow and would ran fell off map. I would see a opaque tile on that location not knowing about a scene and map with no tile at that location. depending on where I placed get_cell() I would get tile 8 or -1. I thought it might be a view port different sized resolution snapping issue so I found this video.
@Kidscancode4 жыл бұрын
instance() does neither of those things. `instance()` is a method of PackedScene. You get a PackedScene when you load a saved scene file. `instance()` then builds all of the nodes and resources that are saved in that PackedScene.
@Druiduk19733 жыл бұрын
Fantastic, thank you.
@ryanak13934 жыл бұрын
bro nice tutorial btw, but I have a problem when I finished doing it it only showed a black screen and when I hided the viewports and unhide them again, it now shows me a gray screen can someone help plzzzz!!!
@ItsNoGoodJrGaming4 жыл бұрын
godotengine.org/qa/57751/viewports-display-nothing-as-im-using-them this might help. It fixed the black screen for me.
@watercat12484 жыл бұрын
i want semuler tourial in 3D and and in godot 3.2 instant
@saulnores34774 жыл бұрын
Great tutorial!!
@MagnusKlassik3 жыл бұрын
Great, thanks a lot! :)
@starplatinum53516 жыл бұрын
it says invalid to get index "world_2d" on base null instance
@Kidscancode6 жыл бұрын
That means you probably have the node name spelled incorrectly. Check that your node names are correct in all the onready declarations. Remember, you can drag a node from the tree into the code editor and it will paste the path.
@starplatinum53516 жыл бұрын
Ty
@lavanyagangavarapu40594 жыл бұрын
Is 17 too old to start godot?
@Kidscancode4 жыл бұрын
That's an odd question. First of all, you're never too old to learn something new, but second of all, Godot is is a professional-quality game development tool. It can be used by anyone at any skill level.
@nukeman46 жыл бұрын
This helps alot. Can you make serial/tutorial how to make 3D FPS Multiplayer game, gun shoots...
@Kidscancode6 жыл бұрын
There's one in the official docs: docs.godotengine.org/en/latest/tutorials/3d/fps_tutorial/part_one.html
@nukeman46 жыл бұрын
Thanks, there is no multiplayer and player models :( i'm newbie in development.
@nukeman46 жыл бұрын
And there is not many youtube tutorials about this :(
@Kidscancode6 жыл бұрын
If you're a newbie, you probably want to stay away from multiplayer for now. It's a lot more complex, and until you're very comfortable with how things work, you should probably focus on the fundamentals.
@nukeman46 жыл бұрын
Thanks for suggestion :) I also expecting some 3D Tutorials hehe
@starplatinum53516 жыл бұрын
Does this work on a platformer?????
@Kidscancode6 жыл бұрын
No reason why not. The camera just displays what's around the player.