Godot 3.0: Splitscreen Multiplayer

  Рет қаралды 24,256

KidsCanCode

KidsCanCode

Күн бұрын

Пікірлер: 83
@MisterBrown94
@MisterBrown94 6 жыл бұрын
You made it so easy I'm speechless. You showed so many useful features, thank you a lot. Also, congratulations on publishing your book!
@Kidscancode
@Kidscancode 6 жыл бұрын
Thanks!
@NeilRoy
@NeilRoy 5 жыл бұрын
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.
@Kidscancode
@Kidscancode 5 жыл бұрын
Thanks!
@Any_key404
@Any_key404 6 жыл бұрын
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.
@EricDaily
@EricDaily 3 жыл бұрын
Your tutorials are by far the best. Every one covers like exactly the things i was hoping it would. Thank you
@tiggerbiggo
@tiggerbiggo 5 жыл бұрын
Wow, I was blown away when you did the viewport snapping and they both just take up half the view, so simple!
@bitbionic1797
@bitbionic1797 6 жыл бұрын
That was a fantastic tutorial! Great job! I didn't know about the transparent background on the viewport! Really helpful.
@frankwenner8782
@frankwenner8782 6 жыл бұрын
It seems like whenever I have a question in my head you make a video on it.
@noohalavi3870
@noohalavi3870 5 жыл бұрын
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!
@MattHuisman
@MattHuisman 6 жыл бұрын
We have missed you! Thanks for another great video.
@Kidscancode
@Kidscancode 6 жыл бұрын
Yeah, between finishing the book and a taking a small family vacation, I haven't had any recording time in a while. :)
@upyours2707
@upyours2707 6 жыл бұрын
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!
@Kidscancode
@Kidscancode 6 жыл бұрын
Thanks!
@gameplayandreview
@gameplayandreview 5 жыл бұрын
Great piece of work, can you make for 3D too?
@mrpedrobraga
@mrpedrobraga 2 жыл бұрын
in 3d, simply use World instead of World2D!
@shaynecrist
@shaynecrist 5 жыл бұрын
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?
@Crisisdarkness
@Crisisdarkness 6 жыл бұрын
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?
@Kidscancode
@Kidscancode 6 жыл бұрын
Indeed. It was just published. You can find it here: a.co/eNDRbL0
@Any_key404
@Any_key404 6 жыл бұрын
If I buy the Kindle book will it include any errata or updates (Typo fixes and such)?
@Kidscancode
@Kidscancode 6 жыл бұрын
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.
@Crisisdarkness
@Crisisdarkness 6 жыл бұрын
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.
@Kidscancode
@Kidscancode 6 жыл бұрын
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
@sorrowseal
@sorrowseal 6 жыл бұрын
You make such an amazing and high quality tutorials! I wonder if you could make a tutorial on online multiplayer, specifically for Steam.
@stupenrio2498
@stupenrio2498 3 жыл бұрын
thank you so much i was struggling with this for three days
@jugibur2117
@jugibur2117 2 жыл бұрын
A great help for me understanding the viewport concept, many thanks!
@NeilRoy
@NeilRoy 4 жыл бұрын
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-pf7ih
@Liam-pf7ih 6 жыл бұрын
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
@morris4622
@morris4622 4 жыл бұрын
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
@faKeviolet69
@faKeviolet69 3 жыл бұрын
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-xb3of
@JB-xb3of 4 жыл бұрын
Is it possible to change the shape of a viewport?
@ZephB
@ZephB 5 жыл бұрын
This doesn't work. It is just giving me black screen side by side
@davidmurphy563
@davidmurphy563 4 жыл бұрын
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-tamil3838
@mychannel-tamil3838 3 жыл бұрын
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
@oliver5086
@oliver5086 4 жыл бұрын
What is world_2d it wont work
@btmofmyheart
@btmofmyheart 4 жыл бұрын
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?
@thawinchalermdit
@thawinchalermdit 3 жыл бұрын
mines don't display two screen when i add the script and it doe not even display the viewport1 and 2
@monikamagori795
@monikamagori795 4 жыл бұрын
How can you do this in version 3.2.1?
@Kidscancode
@Kidscancode 4 жыл бұрын
The exact same way. This project runs in 3.2.1 without any changes.
@monikamagori795
@monikamagori795 4 жыл бұрын
@@Kidscancode Thank you, the Problem was my Computer.
@youssefal_janaby3250
@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
@secretbigbill2469 Жыл бұрын
Yes, just change the input map to PS3 controls
@JonnySamSam
@JonnySamSam 5 жыл бұрын
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.
@Kidscancode
@Kidscancode 5 жыл бұрын
Did you include a Camera in each Viewport's world?
@JonnySamSam
@JonnySamSam 5 жыл бұрын
@@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!
@honesthamster
@honesthamster 2 жыл бұрын
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
@nerdzmasterz5417
@nerdzmasterz5417 4 жыл бұрын
I get a black screen. Not sure why.
@rednewdev
@rednewdev 5 жыл бұрын
Managed to do it after set the size of viewport, for some reason it was turned off in godot 3.1
@ziggyzoggin
@ziggyzoggin 2 жыл бұрын
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
@daywalkertpify
@daywalkertpify 3 жыл бұрын
This is gold. Thank you very much!
@BrownieX001
@BrownieX001 6 жыл бұрын
Amazing! I have asked for this and you delivered. Thank you so much.
@redps8611
@redps8611 6 жыл бұрын
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
@Kidscancode
@Kidscancode 6 жыл бұрын
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.
@redps8611
@redps8611 6 жыл бұрын
something like this imgur.com/g3fHcOj
@MsKocagoz
@MsKocagoz 6 жыл бұрын
Bro you are the best at Godot
@DivLionheart
@DivLionheart 4 жыл бұрын
Thank you for the awesome tutorial.
@karatecube3815
@karatecube3815 6 жыл бұрын
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.
@Kidscancode
@Kidscancode 6 жыл бұрын
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...?
@karatecube3815
@karatecube3815 6 жыл бұрын
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.Lefort
@Auguste.Lefort 6 жыл бұрын
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 ?
@Kidscancode
@Kidscancode 6 жыл бұрын
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.Lefort
@Auguste.Lefort 6 жыл бұрын
KidsCanCode Yeah it will be interesting I think ! Thanks for replying, I'll try this out !
@Amipotsophspond
@Amipotsophspond 4 жыл бұрын
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.
@Kidscancode
@Kidscancode 4 жыл бұрын
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.
@Druiduk1973
@Druiduk1973 3 жыл бұрын
Fantastic, thank you.
@ryanak1393
@ryanak1393 4 жыл бұрын
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!!!
@ItsNoGoodJrGaming
@ItsNoGoodJrGaming 4 жыл бұрын
godotengine.org/qa/57751/viewports-display-nothing-as-im-using-them this might help. It fixed the black screen for me.
@watercat1248
@watercat1248 4 жыл бұрын
i want semuler tourial in 3D and and in godot 3.2 instant
@saulnores3477
@saulnores3477 4 жыл бұрын
Great tutorial!!
@MagnusKlassik
@MagnusKlassik 3 жыл бұрын
Great, thanks a lot! :)
@starplatinum5351
@starplatinum5351 6 жыл бұрын
it says invalid to get index "world_2d" on base null instance
@Kidscancode
@Kidscancode 6 жыл бұрын
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.
@starplatinum5351
@starplatinum5351 6 жыл бұрын
Ty
@lavanyagangavarapu4059
@lavanyagangavarapu4059 4 жыл бұрын
Is 17 too old to start godot?
@Kidscancode
@Kidscancode 4 жыл бұрын
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.
@nukeman4
@nukeman4 6 жыл бұрын
This helps alot. Can you make serial/tutorial how to make 3D FPS Multiplayer game, gun shoots...
@Kidscancode
@Kidscancode 6 жыл бұрын
There's one in the official docs: docs.godotengine.org/en/latest/tutorials/3d/fps_tutorial/part_one.html
@nukeman4
@nukeman4 6 жыл бұрын
Thanks, there is no multiplayer and player models :( i'm newbie in development.
@nukeman4
@nukeman4 6 жыл бұрын
And there is not many youtube tutorials about this :(
@Kidscancode
@Kidscancode 6 жыл бұрын
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.
@nukeman4
@nukeman4 6 жыл бұрын
Thanks for suggestion :) I also expecting some 3D Tutorials hehe
@starplatinum5351
@starplatinum5351 6 жыл бұрын
Does this work on a platformer?????
@Kidscancode
@Kidscancode 6 жыл бұрын
No reason why not. The camera just displays what's around the player.
Godot 3: Draggable Windows
8:45
KidsCanCode
Рет қаралды 13 М.
Using the Tileset Editor in Godot 3.1 (tutorial)
19:34
GDQuest
Рет қаралды 225 М.
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
Make a 2D "Ghost" effect in Godot
16:34
Mister Taft Creates
Рет қаралды 27 М.
Getting Started with Screen Sizes in Godot 3
7:08
GDQuest
Рет қаралды 92 М.
Godot 3.1 - LIGHT on TILE MAPS - Tutorial very QUICK and EASY
6:16
Daniel Hofmann
Рет қаралды 59 М.
BETTER 2D visuals in 7 EASY TIPS
10:38
MrEliptik
Рет қаралды 76 М.
Godot 3.0: 2D Visibility with Ray-casting
22:22
KidsCanCode
Рет қаралды 71 М.
Godot Save Game Tutorial: Save and load using Resources
15:13
6 Tips to Better Organize your Godot Projects
11:39
GDQuest
Рет қаралды 137 М.
How to Make a Simple State Machine in Godot 3.1
8:10
Game Endeavor
Рет қаралды 94 М.