ScratchData LogoScratchData
Back to thisisntme's profile

GloStik Recordable Dance Moves

THthisisntme•Created November 24, 2014
GloStik Recordable Dance Moves
54
47
1182 views
View on Scratch

Instructions

This took a really long time so please love and fave :P Added fully functional record and playback system. Get a full 500 characters worth of playback :) 500 characters is equivalent to 250 frames!! Longer animations can be made, but will not fit in comments. If you are interested in how the frame to text encoding is done please read below.

Description

The variables that control the movement of the character are the x and y positions of the mouse. My first thought was to just add these to a variable separated by dashes and commas (Xpos-Ypos,Xpos-Ypos,) This however did not make very good use of the 500 characters considering that each one was 2 or 3 digs long. The next step of improving storage was using the builtin round function to round numbers to the nearest tenth and then divide by 10. This allows for 1/3 more data to be stored. The final stage of this process is to convert the 2 or 1 digit number to a 1 digit string. So a position of 0.5, 202.2would be equivalent to 0,20 which is equivalent to AU. An entire animation would look something like ABCDEFGHIJKLMNOPQRSTUVWDANXAIALIAJUHEWFAIUHFLASDFHUIAWEFHOASDFLIHAWAEFHIAASDHFUILAWEIUHDASDIUSHXCDILAUHEIFUAHSDIFUHWEF The stringefied format is also more easily readable by the program because all the recorded values are one character long. Future developments More compression (If it repeats the same pos more than once then put a number in front of it to indicate the amount of time it stays in that position. Possible cloud storage variable with a 500 (possibly more due to lack of string support) character limit per user. Problems with future developments Cloud vars UNABLE TO STORE STRINGS. This is very agitating and I would recommend the scratch team fixing this.

Project Details

Project ID36038260
CreatedNovember 24, 2014
Last ModifiedDecember 6, 2014
SharedNovember 26, 2014
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root