Discuss Scratch

Ackar9565
Scratcher
17 posts

How do you make an online game which other people can play?

I basically am asking the same question above, but i need some help with codes….i have a basic idea that i will make other players visible with clones but need help from there
deck26
Scratcher
1000+ posts

How do you make an online game which other people can play?

If you mean a multiplayer game there have been lots of forum questions on the topic so searching for ‘multiplayer’ and checking the forum results might help.

Essentially you need to use cloud variables and need to manage the players so new players can only join if there's a spare slot. You also have to cope with the limitations of cloud variables - no alpha characters, just numeric and only 10 variables.
Ackar9565
Scratcher
17 posts

How do you make an online game which other people can play?

but im a noob at coding, so i need someone to simplify and explain
deck26
Scratcher
1000+ posts

How do you make an online game which other people can play?

I suggest you'd be better building up experience before trying something like this. There's a limit to how much it can be simplified!

If you're determined to do it you need to experiment with cloud variables first to be sure you understand them. The key part is the allocation of player ‘slots’ so that each player is managed separately. This recent post is relevant https://scratch.mit.edu/discuss/topic/117112/ - especially my post with the script.

Once a player has a slot you can allow them to change appropriate cloud variables - eg they might each have an x and y variable to record their position so their movement can be picked up by the other player. Ideally only one player is ever responsible for updating any particular cloud variable.

Ackar9565
Scratcher
17 posts

How do you make an online game which other people can play?

deck26 wrote:

I suggest you'd be better building up experience before trying something like this. There's a limit to how much it can be simplified!

If you're determined to do it you need to experiment with cloud variables first to be sure you understand them. The key part is the allocation of player ‘slots’ so that each player is managed separately. This recent post is relevant https://scratch.mit.edu/discuss/topic/117112/ - especially my post with the script.

Once a player has a slot you can allow them to change appropriate cloud variables - eg they might each have an x and y variable to record their position so their movement can be picked up by the other player. Ideally only one player is ever responsible for updating any particular cloud variable.

Whatisacloudvariable?
deck26
Scratcher
1000+ posts

How do you make an online game which other people can play?

http://wiki.scratch.mit.edu/wiki/Cloud_Data

If you use normal variables each copy of the project runs separately and variable changes are not seen by other players. If you want a multiplayer game where different players are on different computers but player A can see things change because of what player B is doing you have to use cloud variables which are updated on the Scratch server and each copy of the project sees the current value of the cloud variables.
Ackar9565
Scratcher
17 posts

How do you make an online game which other people can play?

ok, that makes sense
Patcharisu
Scratcher
30 posts

How do you make an online game which other people can play?

Ackar9565 wrote:

I basically am asking the same question above, but i need some help with codes….i have a basic idea that i will make other players visible with clones but need help from there

MadeUpPerson wrote:

Can I quote anything even if nobody actually said it?

look at https://scratch.mit.edu/projects/20179538/#fullscreen
monstermash3
Scratcher
1000+ posts

How do you make an online game which other people can play?

Patcharisu wrote:

Ackar9565 wrote:

I basically am asking the same question above, but i need some help with codes….i have a basic idea that i will make other players visible with clones but need help from there

MadeUpPerson wrote:

Can I quote anything even if nobody actually said it?

look at https://scratch.mit.edu/projects/20179538/#fullscreen
Please don't necropost. This topic is over four months old, so it is probably dead by now.
projectday1
Scratcher
27 posts

How do you make an online game which other people can play?

so to make a multiplayer game create sprites(players,any amount you want)and a blank one with is going to be called multiplayer or cloud then add this script make these variables
☁Player1☁Player2
and add more depending the amount of the players you want now make these
PlayingasPlayer1PlayingasPlayer2Player1XPlayer1YPlayer2XPlayer2Y
then make this script on Player1
whenclickedforeverifPlayingasPlayer1=truethenifleftkeypressedthenchangexbyamountyouwantsetPlayer1 Xto(x position)
and you continue with the keys you want them to press and use Player1 Y for jumping ( thats everything I know so they could see them move at the exact time )
deck26
Scratcher
1000+ posts

How do you make an online game which other people can play?

projectday1 wrote:

so to make a multiplayer game create sprites(players,any amount you want)and a blank one with is going to be called multiplayer or cloud then add this script make these variables
☁Player1☁Player2
and add more depending the amount of the players you want now make these
PlayingasPlayer1PlayingasPlayer2Player1XPlayer1YPlayer2XPlayer2Y
then make this script on Player1
whenclickedforeverifPlayingasPlayer1=truethenifleftkeypressedthenchangexbyamountyouwantsetPlayer1 Xto(x position)
and you continue with the keys you want them to press and use Player1 Y for jumping ( thats everything I know so they could see them move at the exact time )
Incomplete and, as has already been pointed out, this topic is old and should be treated as closed.
MLG-FOXY-MLG
Scratcher
11 posts

How do you make an online game which other people can play?

deck26 wrote:

projectday1 wrote:

so to make a multiplayer game create sprites(players,any amount you want)and a blank one with is going to be called multiplayer or cloud then add this script make these variables
☁Player1☁Player2
and add more depending the amount of the players you want now make these
PlayingasPlayer1PlayingasPlayer2Player1XPlayer1YPlayer2XPlayer2Y
then make this script on Player1
whenclickedforeverifPlayingasPlayer1=truethenifleftkeypressedthenchangexbyamountyouwantsetPlayer1 Xto(x position)
and you continue with the keys you want them to press and use Player1 Y for jumping ( thats everything I know so they could see them move at the exact time )
Incomplete and, as has already been pointed out, this topic is old and should be treated as closed.

does not work either sinceits uptating on your screen and if you want them too move you have to refresh the page

basicly its not ‘runtime multiplayer’
BKFighter
Scratcher
1000+ posts

How do you make an online game which other people can play?

MLG-FOXY-MLG wrote:

deck26 wrote:

projectday1 wrote:

so to make a multiplayer game create sprites(players,any amount you want)and a blank one with is going to be called multiplayer or cloud then add this script make these variables
☁Player1☁Player2
and add more depending the amount of the players you want now make these
PlayingasPlayer1PlayingasPlayer2Player1XPlayer1YPlayer2XPlayer2Y
then make this script on Player1
whenclickedforeverifPlayingasPlayer1=truethenifleftkeypressedthenchangexbyamountyouwantsetPlayer1 Xto(x position)
and you continue with the keys you want them to press and use Player1 Y for jumping ( thats everything I know so they could see them move at the exact time )
Incomplete and, as has already been pointed out, this topic is old and should be treated as closed.

does not work either sinceits uptating on your screen and if you want them too move you have to refresh the page

basicly its not ‘runtime multiplayer’
Helloooo…… v v v

deck26 wrote:

Incomplete and, as has already been pointed out, this topic is old and should be treated as closed.
Arcade_Archive
Scratcher
4 posts

How do you make an online game which other people can play?

whenclickedforeverifthislookscoolthencreatecloneofpoop
deck26
Scratcher
1000+ posts

How do you make an online game which other people can play?

Arcade_Archive wrote:

whenclickedforeverifthislookscoolthencreatecloneofpoop
Please don't spam
Bluestar601
Scratcher
97 posts

How do you make an online game which other people can play?

try this:
Cloud Test by yuolyuol
deck26
Scratcher
1000+ posts

How do you make an online game which other people can play?

Bluestar601 wrote:

try this:
Cloud Test by yuolyuol
Please read through a topic before replying. If you'd done so you'd have realised you're necroposting.
coolgamesben10
Scratcher
100+ posts

How do you make an online game which other people can play?

deck26
Scratcher
1000+ posts

How do you make an online game which other people can play?

coolgamesben10 wrote:

http://wiki.scratch.mit.edu/wiki/Creating_a_Multiplayer_Game

deck26 wrote:

Bluestar601 wrote:

try this:
Cloud Test by yuolyuol
Please read through a topic before replying. If you'd done so you'd have realised you're necroposting.
jab6234
Scratcher
1 post

How do you make an online game which other people can play?

_meow_

Powered by DjangoBB