Thursday, January 2, 2020

I Figured Out How to Make Online Multiplayer Games on Scratch :D

This might sound confusing, but here we go. To make an online multiplayer game you have to make two cloud variables, X Position and Y Position. Now, we need to set these variables to equal the actual X and Y position of each sprite. To do this, set the player to forever go to the value of the cloud variables we just made. Inside a forever loop put a "Go to X: () Y: ()". Inside the parentheses put the cloud variables. DO NOT FORGET THE FOREVER LOOP! Now, get out your usual script to movement "Forever If Key Up Arrow Pressed Change X or Y By ()". Delete the "Change X or Y By ()". In its place, put one of the Change Variable By () blocks. Put in the amount you want them to change. Now you're good! You just have to make sure that you set the positive and negative values correctly. Confused? Probably. Just go to my account and look inside my multiplayer engien if you really want to find out.

No comments:

Post a Comment