Paddle2SeeFixIt's Recent Projects http://scratch.mit.edu/feeds/getRecentUserProjects/56712 Recent Projects Feed for Paddle2SeeFixIt en-us Mon, 6 Oct 2008 16:23:47 GMT CakePHP Han and Andres genghisu Henry_The_Fish[1] http://scratch.mit.edu/projects/Paddle2SeeFixIt/283625 Tracking a bug http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/283625_sm.png Motor_bike_jump_prototype[1] http://scratch.mit.edu/projects/Paddle2SeeFixIt/282008 To answer a question in the forums on rotation. Press right key to go forward and press love it if you want it to become a real game ******plz report any glitches you find****** Slight update you can now rotate when you hit the rotate point also you can go faster http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/282008_sm.png circle-ish_thing[1] http://scratch.mit.edu/projects/Paddle2SeeFixIt/281968 This is FoxDur's project - I just remixed to simplify the interface a bit. Drag the black circles around. http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/281968_sm.png Draw Program http://scratch.mit.edu/projects/Paddle2SeeFixIt/278460 For Fullmoon - who asked to see this! A simple drawing program. It makes a single connected poly-line with an unlimited number of editable vertices. Pen up/down condition is also stored at each vertex. After the drawing is generated, in can be exported into a format that the Pen Drawn Text program uses. Editting Commands ============== Click with the mouse on the stage to generate a point. A red cross appears on the currently selected point. Use arrow keys to fine-tune the position of the currently selected point. 1 key - Select the previous point in the list of points. Wraps to the last point if you attempt to go before the first point. 2 key - Select the next point in the list of points. Wraps to the first point if you attempt to go beyond the last point. 3 key - Select the last point. Space key - Select the point closest to the mouse M key - Move the currently selected point to the mouse position D key - Delete currently selected point I key - Insert a new point between the currently selected point and the next point U - Toggle the pen up or down for the currently selected point (which controls the line segment between the current point and the next point) R key - Force a redraw (Green flag does this too). Handy after you just imported new geometry. Z key - Delete all geometry and clear screen http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/278460_sm.png Simple Motion Recorder http://scratch.mit.edu/projects/Paddle2SeeFixIt/278126 This is to answer a question in the Forums. A simple motion recorder using lists to store the position of the mouse as it is moved around. Press Space to start the recording. You will see the lists growing in length very quickly. Move the mouse and watch the values change. Click the mouse button to stop recording, then press P to have the cat playback the motion. http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/278126_sm.png Selecting Sprites http://scratch.mit.edu/projects/Paddle2SeeFixIt/274123 This is to answer a Forum question of how to select groups of sprites. You can select sprites individually by clicking on them. Or, you can use the selection rectangle by clicking on the stage twice (once for the start point, once for the finish point). You also have the Select All and Unselect All buttons. The Space key does an Unselect All as well. What can you do with the sprites once they are selected? You can move them with the arrow keys! What fun! I wanted to use a drag operation for the selection rectangle but I couldn't see an easy way to do it without interfering with the ability to select individual sprites by clicking on them. http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/274123_sm.png Olympic_100_meter_dash[1] http://scratch.mit.edu/projects/Paddle2SeeFixIt/265913 A fix for AAAAAwinnerGLT ============================== This is just a little project I did over the course of 2 days. There's a very simple way to do it but really complex scripts. HOW TO PLAY: 1. Click the stage 2. Once the flags appear (you are the USA flag), press the right and left arrow keys to move. 3. You can set the World record and Olympic record with the sliders at the top. OTHER IDEAS: Make an American Record. Make other events. Make another song. Please leave good comments because if I get 10 mean comments i might delete it from the website. If I get 20 love its I will make a 3-event project like this!!!!! Enjoy!! http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/265913_sm.png Comparison of Strings http://scratch.mit.edu/projects/Paddle2SeeFixIt/265377 Verifying some string comparisons It appears that string comparisons (other than =) are not working online at this point. http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/265377_sm.png ScratchScript http://scratch.mit.edu/projects/Paddle2SeeFixIt/264919 ScratchScript Why use Scratch from an easy Drag-and-Drop Interface when you can use a cumbersome and cryptic typed interface? Introduction ============ ScratchScript is a small scripting language that runs in Scratch. It uses a list as the "input file". It was written for fun and to provide another way to interface with Scratch. A single sprite is controlled by commands entered into the "User Input" list. The syntax is very finicky, mostly due to the very limited text processing capabilities of Scratch. Because of the limitations of Scratch, all commands must be entered with no leading or trailing spaces! For the commands that take parameters (arguments), each parameter must be entered on it's own line. Some commands allow an unlimited list of parameters (X and Y data, for instance). For these types of commands, the end of the input is marked by a single "#" character with no leading or trailing spaces. ScratchScript allows user defined macros. These can be defined in the usual input list, "User Input", or they can be added to a list of permanent built in macros, called "Built In Includes". In either location, a string made up of three pound signs "###" is used to separate the definition from other data. Again, no leading or trailing spaces are tolerated. Credits ======= Thanks to the Scratch Team for the great job putting Lists in Scratch! Thanks to Jens for showing us all the way. And thanks to likegames for inspiration and encouragement. Motion Commands =============== GOTO - cartisian coordinate absolute motion x y ... (more X/Y pairs of data, if desired) # (be sure to put this end of data character after the last X/Y pair) ORIGIN - set the origin that will be used for subsequent relative position commands (GOTOR,STRINGR,POSR) to the current position of the sprite GOTOR - cartisian coordinate relative motion. All motion is relative to position of last ORIGIN call x y ... (more X/Y pairs of data, if desired) # (be sure to put this end of data character after the last X/Y pair) POS - reposition to an absolute position. Does a single penup move. No scaling is applied. x y POSDELTA - reposition by a change in X and Y. Does a single penup move. No scaling is applied. x y POSR - reposition to a relative position, set by the last ORIGIN call. Does a single penup move. Scaled. x y Notes on GOTO,ORIGIN,GOTOR,POS,POSDELTA,POSR If you just want to work with screen coordinates, use POS and POSDELTA to position the pen and GOTO to draw lines (preceeded by a PENDOWN command). If you want to build an image that can be drawn from the current mouse position and scaled using the SCALE command, use ORIGIN to set the origin to the mouse position, then use POSR to position the pen relative to the new origin. Then, use GOTOR to draw lines (preceeded by a PENDOWN command). Most of the other geometry comamnds (SQUARE, CIRCLE, LINE, VLINE, CROSS) that allow you to enter dimensions work well for this sort of image construction as well. Macro geometry commands (STAR, FRAME, STAR2, HOUSE) may not work as well. GLIDE - glide to an absolute position in a given amount of time glide time x y GLIDER - glide to a relative position, set by the last ORIGIN call, in a given amount of time glide time x y TURNMOVE - polar coordinate relative motion angle distance ... (more ang/distance pairs of data if desired) # (be sure to put this end of data character after the last X/Y pair) POINTANGLE - Point in the specified direction direction SCALE - specify the Scale factor to be applied to all motion commands (except POS and POSDELTA) scale factor SPIN - spin the sprite clockwise using 45 degree increments - uses the SPIN_INC built-in macro HOME - raise the pen and bring the sprite to 0,0 and pointed to the right - uses the HOME_INC built-in STAR - draws a string art star - uses the STAR_INC built-in FRAME - draws a string art frame - uses the FRAME_INC built-in HOUSE - draws a simple outline of a house - uses the HOUSE_INC built-in SQUARE - draws a square centered on the current postion with given side length side length RECTANGLE - draws a rectangle centered on the current position with given length and height length height CROSS - draws a cross centered on the current position with given side length side length LINE - draws a horizontal line centered on the current position with given length length VLINE - draws a vertical line centered on the current postion with given length CIRCLE - draws a circle of given diameter centered around the current position diameter ARC - draws a CW circular arc of given radius centered around the current position starting at the given start angle and proceeding for the specified number of degrees diameter start angle degrees of arc SINE - draws a plot of a sine wave of given amplitude, overall length and number of cycles. Use the VSINE command if you want a sine wave running vertically amplitude length cycles COSINE - draws a plot of a cosine wave of given amplitude, overall length and number of cycles. Use the VCOSINE command if you want a cosine wave running vertically amplitude length cycles STRING - draws string art between the x/y pairs using the specified number of division. Needs at least three points to work. number of divisions (10 makes a good starting value) x y x2 y2 x3 y3 ....(more x/y pairs, if desired) # (be sure to put this end of data character after the last X/Y pair) STRINGR - draws string art like STRING but all motion is relative to the origin set by ORIGIN number of divisions (10 makes a good starting value) x y x2 y2 x3 y3 ....(more x/y pairs, if desired) # (be sure to put this end of data character after the last X/Y pair) Pen Commands ============ PENUP - raise the pen PENDOWN - lower the pen PENCOLOR - specify the pen color using one of the values below red,green,blue,yellow,orange,aqua,purple,violet,black PENCOLORCHANGE - the amount the pen color will change between lines when doing string art amount (10 works nicely) PENSIZE - set the pen size size STAMP - stamp the current costume CLEAR - clear the screen of pen markings and stamps Sprite Appearance Commands ========================== HIDE - hide the sprite SHOW - show the sprite COSTUME - change the costume to the specified name or number costume name or number SIZE - set the sprite size percentage of full size BACKGROUND - set the background to the specified name or number background name or number SAY - display one lines of text in a speech bubble for the specified amount of time display seconds stuff to say Other Commands ============== CALC - calculate an operation on a list of numbers using any or the operators +-*/ operator (+-*/) number number .... (more numbers, if desired) # (be sure to put this end of data character after the last number) WAIT - pause operation for a specified number of seconds wait time COMMENT - one or more lines of comment text comment .... (more comment lines, if desired) # (be sure to put this end of data character after the last comment line) SLEEP - puts the cat to sleep WAKEUP - wakes the cat up COOKIE - the cat will tell you a fortune cookie sayingclear glide 2 0 -40 stamp hide include rainbow show wait 2 cookie clear glide 2 -200 -40 TEXT - prints text (one letter at a time) using stamping. Size is set with the SCALE command first letter second letter .... (more letters, if desired) # (be sure to put this character after the last letter) Notes on TEXT: Only a very limited character set is recognized A-Z and 0-9 plus a few other characters. The following characters confuse the list used to input stuff and need to be entered as words: DOT - period or decimal point PLUS - Plus sign MINUS - Minus Since putting in a space is easy to mess up by putting in two or three...I decided if you wanted a space you would input an underscore character for the space. Macro Commands ============== DEFINE - define a set of commands at runtime to be stored and invoked later with an INCLUDE command macro name command .... (more commands, if desired) ### (be sure to put this end of definition string after the last command) INCLUDE - request that a stored macro be retrieved and executed. Could be a Built-in or runtime macro macro name Notes about Macros ================== Note that if you decide to add macros to the Built-in list (called "Built In Includes") you don't need a DEFINE command (since the list contains only macros) but you do need the ### separater between macros. Note that Built-in macros have priority over runtime defined macros, if they have the same name. Be sure to click on the Green Flag after adding built-ins so that the index is rebuilt. A macro can reference other macros with the INCLUDE command to any desired level. The macro is simply copied to the input list for processing, the pointer adjusted and processing continues. Some commands actually invoke built-in macros themselves. Macros used by commands are named the same as the command but with a suffix of "_INC". These commands will execute fairly slowly but have the advantage of being easy to change. http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/264919_sm.png Simple Plotter from Data http://scratch.mit.edu/projects/Paddle2SeeFixIt/261627 This addresses a request in the Forum from gagetman about bringing some data in what looks like some sort of simple HPGL plot format (pen up, pen down, goto x,y) into Scratch. Okay, so I took the data file and converted it to one piece of data per line using the VIM editor in a Unix emulator (Cygwin) because that was the simplest way I could think of to do it. Then, I wrote a simple interpreter project in scratch and tried it out. It looked like the pen needed to start at a certain position to work right so I stuck that in and this is what I ended up with. This project only recognizes 3 commands: "up" - Pen up "down" - Pen down "goto" - Goto. The X and Y coordinates must follow the goto command, each on it's own line. Some day when we have string manipulation functions in Scratch, we won't need to do all the file manipulation stuff. We can just read the lines in, break them up into fields and plot them. I can hardly wait! The data can be found at the original posting <A href="/forums/viewtopic.php?pid=67753#p67753">(link to forums)</A> http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/261627_sm.png Text Input with 1.3 http://scratch.mit.edu/projects/Paddle2SeeFixIt/257886 This project shows a crude method of providing user text input to a variable and a way to use that variable in a concatenated text string that is used in the Say block. Type in your name, then click on the Cat. The only method of concatenation I have discovered so far makes use of the List ability to return all the list contents when you reference the list name. Unfortunately, this method sticks a space between each list element when it does this so your text gets spread out. http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/257886_sm.png Love_Has_No_Reflection_On_You[1] http://scratch.mit.edu/projects/Paddle2SeeFixIt/249021 This is a remix for thewhiteknight to show how to do page turning with a single key using the Next Costume block. Space key - next page Left Arrow key - previous page Original Project Notes Below ==================== This is a prlogue to a story Im writing. It is a horror/love story and it will span into parts. I used the flashlight effect to make it more scary and suspensful. I got the inspiration for the flashlight from a video i seen on Scratch. I basically downloaded the video, looked at how the flashlight thing was made, and built it again from scratch. Enjoy http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/249021_sm.png Turning Towards a Sprite http://scratch.mit.edu/projects/Paddle2SeeFixIt/245712 This project shows one technique for turning towards another sprite. It uses a helper sprite to get the direction to the target. The angle difference is then normalized to between -180 and 180 degrees through a series of tests. The turn direction can then be determined by looking at the sign of the angle difference. http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/245712_sm.png Rolly's Rollabout - Improved Mouse Control http://scratch.mit.edu/projects/Paddle2SeeFixIt/245687 This is a remix for cheewowa to show a way to use the mouse to guide a sprite without having it shake when the mouse stops. The dog follows the mouse. Press spacebar to bark. Rest on the mat. http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/245687_sm.png Shadow Lines with Trig http://scratch.mit.edu/projects/Paddle2SeeFixIt/241761 This is for NXTGeek Drag the yellow light source around and see the shadow lines move. This shows how to compute shadow lines with trigonometry. It uses a straight line sprite to stamp the shadow lines - the pen wasn't working well when pushed too far off the screen. Still something funny going on with the shadow lines - at certain angles, they leave the surface of the posts. I don't know why they are doing that yet. http://scratch.mit.edu/static/projects/Paddle2SeeFixIt/241761_sm.png