This app shows how to allow to Scratchers to chat with each other using cloud variables. It is the first in a series as I hope to expand it to multiple chatters. It is meant for me to chat with 1 of my grandchildren, you will need to remix it to make it work for you and a friend. You should watch this tutorial from Griffpatch if you want to understand how to encode/decode lettters etc as numbers so they can be sent up to the server as cloud variables (https://www.youtube.com/watch?v=nNv9iehpGRQ&list=RDCMUCawsI_mlmPA7Cfld-qZhBQA&index=2)
CURRENTLY UNDER TEST! Thanks to GriffPatch for his cloud tutorials, especially his character to number encoding scheme. Cloud Variables: Every cloud variable has a corresponding non-cloud (local) variable of a similar name, this is so we can tell when a cloud variables value has changed by comparing it to its local partner. Checking for changes is important for efficiency and avoiding problems since the Referee event loop block loops continually and we don't want to unnecessarily execute blocks if the cloud variables haven't changed. Here are the cloud variables and their corresponding local partners: 'cadencev334 is online': partner = cadenceisonline, values: 0 = offline 1 = online 'msg to cadencev334': partner = 'msg to cadence', value is the encoded message sent by Gamemaker 'GAMEMAKER4753 is online' - 0 = offline, 1 = online 'msg to GAMEMAKER4753' - Encoded message sent by cadence (me) SPRITES: Referee - Hidden sprite that I is used to initialize the global and cloud variables and monitor changes to the cloud variable via the block 'event loop' SIGNIN - Click on this sprite to Sign In or Sign Out'. Starting the app does not immediately sign you in. I did it this way so that while chatting you could maybe take a bathroom break by signing out and then signing back in. cadencev344 - The Sprite that represents me. Changes color to green/red when signed in/out. Also the sprite where messages from GAMEMAKER4753 appear. GAMEMAKER4753 - Similar to the above sprite but for GAMEMAKER4753 when they are running the app Microphone - hidden