Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How Do You Make 3D Multiplayer Games?
- WeRule123
-
18 posts
How Do You Make 3D Multiplayer Games?
Please Tell Me How To Make 3D Multiplayer Games, Please
- wookie184
-
100+ posts
How Do You Make 3D Multiplayer Games?
it's extremely complicated. i have no idea how it works but you might be able to change stuff in this project to make it your own
https://scratch.mit.edu/projects/47027704/
https://scratch.mit.edu/projects/47027704/
- amylaser
-
500+ posts
How Do You Make 3D Multiplayer Games?
3D multiplayer can be very difficult to implement. I suggest you try something simpler first, then gradually work your way up. Try making a few multiplayer games first; then try making a 3D game; then you can work on figuring out how to combine the two.
The Scratch Wiki would be a good place to start learning about multiplayer:
https://wiki.scratch.mit.edu/wiki/Cloud_Data
https://wiki.scratch.mit.edu/wiki/Cloud_multiplayer#Online_Multiplayer
https://wiki.scratch.mit.edu/wiki/Encoding_and_Decoding_Cloud_Data
The Scratch Wiki would be a good place to start learning about multiplayer:
https://wiki.scratch.mit.edu/wiki/Cloud_Data
https://wiki.scratch.mit.edu/wiki/Cloud_multiplayer#Online_Multiplayer
https://wiki.scratch.mit.edu/wiki/Encoding_and_Decoding_Cloud_Data
- footsocktoe
-
1000+ posts
How Do You Make 3D Multiplayer Games?
Please Tell Me How To Make 3D Multiplayer Games, Please
Both multiplayer and 3D are difficult to pull off.
If you put each of those terms in the search box you can see tutorial projects about them.
- theonlygusti
-
1000+ posts
How Do You Make 3D Multiplayer Games?
With magic.
Seriously though, this is a very difficult thing to do, but don't let that discourage you.
What you need to do is use cloud variables to track the positions of players, and on each client you render those players in their correct positions. This covers the multiplayer side of things. This can be extended to cover a scoring system and any other game aspects that need to be shared between all clients.
The 3D story is a whole different beast, and is (in my opinion) more difficult. There are as many ways to implement 3D games as there are numbers greater than 3. You just have to find one that works for you.
Seriously though, this is a very difficult thing to do, but don't let that discourage you.
What you need to do is use cloud variables to track the positions of players, and on each client you render those players in their correct positions. This covers the multiplayer side of things. This can be extended to cover a scoring system and any other game aspects that need to be shared between all clients.
The 3D story is a whole different beast, and is (in my opinion) more difficult. There are as many ways to implement 3D games as there are numbers greater than 3. You just have to find one that works for you.
- Nalholigy
-
84 posts
How Do You Make 3D Multiplayer Games?
3D and multiplayer could be thought of as the two boss battles of Scratch. I and likely many others will advise against straight up attempting this, but if you're sure, here's what you'll have to learn along the way:
Multiplayer:
3D
Multiplayer:
- How to make a cloud list
- How to check if someone has left the project
- How to make sure two people don't control the same cloud variable
- What https fallback polling is
3D
- How to project 3D objects on a 2D screen
- How to fill a triangle
- How to render faces in the right order
- gems89
-
1000+ posts
How Do You Make 3D Multiplayer Games?
Its very hard to do it on your own.
I recommend you put it in the collaboration forums.
I recommend you put it in the collaboration forums.
- WeRule123
-
18 posts
How Do You Make 3D Multiplayer Games?
then you can work on figuring out how to combine the two.Thanks 3D multiplayer can be very difficult to implement. I suggest you try something simpler first, then gradually work your way up. Try making a few multiplayer games first; then try making a 3D game;
The Scratch Wiki would be a good place to start learning about multiplayer:
https://wiki.scratch.mit.edu/wiki/Cloud_Data
https://wiki.scratch.mit.edu/wiki/Cloud_multiplayer#Online_Multiplayer
https://wiki.scratch.mit.edu/wiki/Encoding_and_Decoding_Cloud_Data
- ultracoder21
-
64 posts
How Do You Make 3D Multiplayer Games?
hey could somebody write a script for like abasic 3d multiplayer like just walking around a 3d area and nothing else
- EPICPIKAGUY
-
100+ posts
How Do You Make 3D Multiplayer Games?
As everyone else has said, this kind of thing is hard to pull off.
Scratch was not designed with 3D games in mind. Nor was it designed with multiplayer in mind.
Even professional programmers can struggle to make a 3D multiplayer game sometimes.
As far as I know, the only person who has ever pulled this thing off in scratch is Griffpatch, with his 3d lazer tag project.
So, I'd recommend by starting off with something simple, and then gradually making your way to creating something bigger.
Scratch was not designed with 3D games in mind. Nor was it designed with multiplayer in mind.
Even professional programmers can struggle to make a 3D multiplayer game sometimes.
As far as I know, the only person who has ever pulled this thing off in scratch is Griffpatch, with his 3d lazer tag project.
So, I'd recommend by starting off with something simple, and then gradually making your way to creating something bigger.
- PressStart1P
-
24 posts
How Do You Make 3D Multiplayer Games?
Raycasting to make an 3d game is relatively easy (I have made 3). Multiplayer is what gets me though.
You could use @griffpatch's 3d laser tag project (https://scratch.mit.edu/projects/17783489/) as a base and then recreate all the cloud variables so they work, and then try to understand what it does.
I have some other examples that may help:
https://scratch.mit.edu/projects/145966034/ - This is a cloud list that writes data to the cloud and then extracts it to make a list.
You could use @griffpatch's 3d laser tag project (https://scratch.mit.edu/projects/17783489/) as a base and then recreate all the cloud variables so they work, and then try to understand what it does.
I have some other examples that may help:
https://scratch.mit.edu/projects/145966034/ - This is a cloud list that writes data to the cloud and then extracts it to make a list.
Last edited by PressStart1P (Feb. 17, 2018 03:32:40)
- FuturePr0
-
100+ posts
How Do You Make 3D Multiplayer Games?
Why did you necropost on a 2 year old topic? hey could somebody write a script for like abasic 3d multiplayer like just walking around a 3d area and nothing else
- Haroun2011
-
18 posts
How Do You Make 3D Multiplayer Games?
GRIFFPATCH 3D LASER TAG ISN'T WORKING ANYMORE!!!!!
- mullafacation
-
100+ posts
How Do You Make 3D Multiplayer Games?
That's a different issue, tell that to the owner of the project. GRIFFPATCH 3D LASER TAG ISN'T WORKING ANYMORE!!!!!
- Haroun2011
-
18 posts
How Do You Make 3D Multiplayer Games?
https://scratch.mit.edu/projects/357162744/ Try This One
- Haroun2011
-
18 posts
How Do You Make 3D Multiplayer Games?
Last edited by Haroun2011 (Jan. 5, 2020 17:42:44)
- IMAWarriors
-
76 posts
How Do You Make 3D Multiplayer Games?
Multiplayer… can't help you there!
But, 3 Dimensional projects I understand vaguely how 3D works. So, imagine you are the player. When you turn around in real life, objects seem to move to the side. To replicate this in scratch, you need three base variables:
This in itself is very simple.
You could add in a Z Value for jumping too, if you wanted.
Here, you would then link the ground/collisions to the values (which is very similar to 2D platforming objects).
But then it gets complicated. Most of what was done before needs to be modified, because you can't look around in this game right now. You can only move left, right, forward and backward. No looking around. So you need two new variables that would be X Rotation and Y Rotation. Now you have to image two imaginary circles:
One around your body vertically, and one around your body horizontally. These two values allow you to look around, so now you could have something like this:
*Note: These value shouldn't EVER go over 359 or go below 0, otherwise things might be bad
The reason why this gets complicated is because you have to have the objects bend to the rotation, too (Which in itself is difficult unless you do it the exact same way you made the objects bend to the movement). So if you press the up arrow to move forward after looking to the left a bit, it won't move in the direction you're facing. The best way I know to fix this uses…
TRIGINOMETRY

I don't know what you know about this, but basically using cosine/sine waves, you can create imaginary circles. Then use the value from a piece of the circle in order to have the objects be affected by it in a manner to which something like this is formed:
So, we're actually still not done here. Because even if you do all of this, the objects might not look smooth because they are only 2 dimensional on a 3 dimensional plane.
I'm not that good at explaining this, and hopefully, someday there will be a simpler way to do this.
Until then, I hope that helped, and goodbye! Keep working on this and scratch on.

But, 3 Dimensional projects I understand vaguely how 3D works. So, imagine you are the player. When you turn around in real life, objects seem to move to the side. To replicate this in scratch, you need three base variables:
- X Value
- Y Value
- Z Value
This in itself is very simple.
You could add in a Z Value for jumping too, if you wanted.
Here, you would then link the ground/collisions to the values (which is very similar to 2D platforming objects).
But then it gets complicated. Most of what was done before needs to be modified, because you can't look around in this game right now. You can only move left, right, forward and backward. No looking around. So you need two new variables that would be X Rotation and Y Rotation. Now you have to image two imaginary circles:
One around your body vertically, and one around your body horizontally. These two values allow you to look around, so now you could have something like this:
*Note: These value shouldn't EVER go over 359 or go below 0, otherwise things might be bad
The reason why this gets complicated is because you have to have the objects bend to the rotation, too (Which in itself is difficult unless you do it the exact same way you made the objects bend to the movement). So if you press the up arrow to move forward after looking to the left a bit, it won't move in the direction you're facing. The best way I know to fix this uses…
TRIGINOMETRY

I don't know what you know about this, but basically using cosine/sine waves, you can create imaginary circles. Then use the value from a piece of the circle in order to have the objects be affected by it in a manner to which something like this is formed:
So, we're actually still not done here. Because even if you do all of this, the objects might not look smooth because they are only 2 dimensional on a 3 dimensional plane.
I'm not that good at explaining this, and hopefully, someday there will be a simpler way to do this.
Until then, I hope that helped, and goodbye! Keep working on this and scratch on.

Last edited by IMAWarriors (Jan. 5, 2020 20:13:01)
- Haroun2011
-
18 posts
How Do You Make 3D Multiplayer Games?
BLU BLU BLU
Last edited by Haroun2011 (Jan. 7, 2020 14:39:01)
- Haroun2011
-
18 posts
How Do You Make 3D Multiplayer Games?
3D and multiplayer could be thought of as the two boss battles of Scratch. I and likely many others will advise against straight up attempting this, but if you're sure, here's what you'll have to learn along the way:
Multiplayer:
- How to make a cloud list
- How to check if someone has left the project
- How to make sure two people don't control the same cloud variable
- What https fallback polling is
3D
- How to project 3D objects on a 2D screen
- How to fill a triangle
- How to render faces in the right order
- Discussion Forums
- » Help with Scripts
-
» How Do You Make 3D Multiplayer Games?