MQTT live project collaboration


when I made this a year ago I thought it was the coolest thing ever. turns out I left out a lot. This channel is for my progress updates for making this better!

To Do:

  1. detect creation of new variables and create it on the other end
  2. detect creation of a new sprite and do it on the other end
  3. detect actions in all sprites
  4. save project in mqtt to create the project if you werent on while edits were being made
  5. if possible costume changes

The goal here is to do this without js but that might not be possible, so if you have any ideas let me know!

I believe this can be easily done with the Declare Variables library, and

could be done with SciSnap!'s "create sprite" block.

rn im working on renaming variables

i cant find a way to rename a variable on the other end. does deleting and creating have the same effect

kind of, but you need to find a way to keep the value of the renamed variable while deleting the old one, and saving that value to the new one. I think that will be easy, just use a script variable to save the value.

that's easy. ok i ran into a problem i cant seem to fix. i have a variable in my script that prevents bugs so it only makes edits to the other devices. but i didnt want to show the variable so i made a block. the block i made doesnt seem to be able to take lists


i cant get it to report a list

can you share a project link or script pics?

rn working on complete variable creation, name change, and deletion

why is it lagging to the point of not working. it should be a simple lightweight code


why is it not deleting the variable

@ego-lay_atman-bay got any ideas?

interesting. i took the primitive out of the delete variable and it worked

now next step. detecting new sprites.

To Do:

  1. handle creating and deleting
  2. handle cloning

sci snap has a lot and honestly is really confusing

look here
https://snap.berkeley.edu/versions/dev/snap.html#present:Username=sathvikrias&ProjectName=create%20sprites%2C%20deleted%20clones%2C%20or%20permanent%20clones
(use the scisnap block)

I optimized your rename variable case. I made it save the variable's "show" state :slight_smile:

renameVariable

ill integrate this. do you want to work on sprite creation

I will try! :wink:

sadly integrating your rename isnt as simple as it should be