I really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really need to know how!(really)
Offline
What kind of input are you trying to record? The mouse? Sound? Typing?
It would help if you would give us some details of what you are trying to do. Thanks.
Offline
Paddle2See wrote:
What kind of input are you trying to record? The mouse? Sound? Typing?
It would help if you would give us some details of what you are trying to do. Thanks.
well... mouse!
Last edited by jamopop (2008-09-13 05:53:17)
Offline
jamopop wrote:
Why wont anyone reply not even andresmh will
Some of us are still waking up!
To record the mouse position, create two lists, one for X and one for Y, let's call them X_Positions and Y_Positions. Then, you can record the mouse postion with this script
When Space Pressed
delete all of X_Positions
delete all of Y_Positions
Repeat Until (Mouse Down?)
Add (Mouse X) to X_Positions
Add (Mouse Y) to Y_Positions
This script will start recording when the space bar is pressed and stop when the mouse button is clicked.
To play it back, first create a variable called Index, then try this script
When P Pressed
Set Index to 1
Repeat (Length of X_Positions)
Go To (Item (Index) of X_Positions), (Item(Index) oif Y_Positions)
Change Index by 1
Hope that helps!
Offline
Paddle2See wrote:
jamopop wrote:
Why wont anyone reply not even andresmh will
Some of us are still waking up!
To record the mouse position, create two lists, one for X and one for Y, let's call them X_Positions and Y_Positions. Then, you can record the mouse postion with this scriptWhen Space Pressed
delete all of X_Positions
delete all of Y_Positions
Repeat Until (Mouse Down?)
Add (Mouse X) to X_Positions
Add (Mouse Y) to Y_PositionsThis script will start recording when the space bar is pressed and stop when the mouse button is clicked.
To play it back, first create a variable called Index, then try this scriptWhen P Pressed
Set Index to 1
Repeat (Length of X_Positions)
Go To (Item (Index) of X_Positions), (Item(Index) oif Y_Positions)
Change Index by 1Hope that helps!
Hmm... nope but thanks for trying!
Offline
kokolol wrote:
Paddle2See wrote:
jamopop wrote:
Why wont anyone reply not even andresmh will
Some of us are still waking up!
To record the mouse position, create two lists, one for X and one for Y, let's call them X_Positions and Y_Positions. Then, you can record the mouse postion with this scriptWhen Space Pressed
delete all of X_Positions
delete all of Y_Positions
Repeat Until (Mouse Down?)
Add (Mouse X) to X_Positions
Add (Mouse Y) to Y_PositionsThis script will start recording when the space bar is pressed and stop when the mouse button is clicked.
To play it back, first create a variable called Index, then try this scriptWhen P Pressed
Set Index to 1
Repeat (Length of X_Positions)
Go To (Item (Index) of X_Positions), (Item(Index) oif Y_Positions)
Change Index by 1Hope that helps!
Hmm... nope but thanks for trying!
remember im jamopops second user!
Offline
paddle2see wrote:
Some of us are still waking up!
To record the mouse position, create two lists, one for X and one for Y, let's call them X_Positions and Y_Positions. Then, you can record the mouse postion with this scriptWhen Space Pressed
delete all of X_Positions
delete all of Y_Positions
Repeat Until (Mouse Down?)
Add (Mouse X) to X_Positions
Add (Mouse Y) to Y_PositionsThis script will start recording when the space bar is pressed and stop when the mouse button is clicked.
To play it back, first create a variable called Index, then try this scriptWhen P Pressed
Set Index to 1
Repeat (Length of X_Positions)
Go To (Item (Index) of X_Positions), (Item(Index) oif Y_Positions)
Change Index by 1Hope that helps!
What do you put after the: Repeat (Length of X_Positions)
Go To (Item (Index) of X_Positions), (Item(Index) oif Y_Positions)
Change Index by 1?
Offline
jamopop wrote:
What do you put after the: Repeat (Length of X_Positions)
Go To (Item (Index) of X_Positions), (Item(Index) oif Y_Positions)
Change Index by 1?
I don't think you have to put anything, that's the whole script.
When Key P Pressed /* Set it up so when the P key is pressed */ Set Index to 1 /* Initialize the item number to the first item in the lists */ Repeat (Length of X_Positions) /* Loop through all the items in the list */ /* Move the sprite to each X,Y position stored in the lists */ Go To (Item (Index) of X_Positions), (Item(Index) of Y_Positions) Change Index by 1 /* Change the item number by one */ /* End of the Repeat loop */
I have made a sample project here, if you want to see it in action
http://scratch.mit.edu/projects/Paddle2SeeFixIt/278126
Offline