This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-10-10 13:27:51

7irishLad07
Scratcher
Registered: 2008-10-10
Posts: 3

Motion blocks? Click and move?

Hey I was just wondering how do you add motion blocks?

And also how can you add a click and move feature?

Offline

 

#2 2008-10-10 13:50:54

registeel
Scratcher
Registered: 2008-04-27
Posts: 500+

Re: Motion blocks? Click and move?

It says there are no motoion blocks on a background, you can only see more blocks on a sprite.

For click-N-drag click http://img513.imageshack.us/img513/1484/costumelt5.png wait oh no... thats don't flip upside-down XP

Offline

 

#3 2008-10-10 13:59:25

7irishLad07
Scratcher
Registered: 2008-10-10
Posts: 3

Re: Motion blocks? Click and move?

registeel wrote:

It says there are no motoion blocks on a background, you can only see more blocks on a sprite.

For click-N-drag click http://img513.imageshack.us/img513/1484/costumelt5.png wait oh no... thats don't flip upside-down XP

Hmm...
Thanks for for the help anyway...

Last edited by 7irishLad07 (2008-10-10 14:01:19)

Offline

 

#4 2008-10-10 19:07:49

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Motion blocks? Click and move?

For motion blocks, go to the motion tab and use the "move _ steps, change x/y by _" etc. blocks. But you won't be able to add them in the stage, so you have to have a sprite selected.

To drag around, click on the lock right beside the box you enter the sprite's name in, then you can drag it around even outside of the editing mode. The sprite will go to the front layer, though, and you can't change it's "draggable-ness" during the game.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#5 2008-10-11 05:28:58

7irishLad07
Scratcher
Registered: 2008-10-10
Posts: 3

Re: Motion blocks? Click and move?

hmnwilson wrote:

For motion blocks, go to the motion tab and use the "move _ steps, change x/y by _" etc. blocks. But you won't be able to add them in the stage, so you have to have a sprite selected.

To drag around, click on the lock right beside the box you enter the sprite's name in, then you can drag it around even outside of the editing mode. The sprite will go to the front layer, though, and you can't change it's "draggable-ness" during the game.

Wrong,
By "adding motion blocks" I meant how to stop strites from moving on different areas on the backround (well if you can do this on scratch)
Hense "block" as in to be stoped


And by click and move it means you can click on the backround and the strite(s)
will move to the part you clicked(If you can do this on scratch

Offline

 

#6 2008-10-11 06:17:07

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Motion blocks? Click and move?

7irishLad07 wrote:

By "adding motion blocks" I meant how to stop strites from moving on different areas on the backround (well if you can do this on scratch)
Hense "block" as in to be stoped

This is normally done with color or sprite sensing.  Here is a technique that I like

for non-rotating sprite:
http://scratch.mit.edu/projects/Paddle2SeeFixIt/188825

for rotating spirte:
http://scratch.mit.edu/projects/Paddle2SeeFixIt/188807

7irishLad07 wrote:

And by click and move it means you can click on the backround and the strite(s)
will move to the part you clicked(If you can do this on scratch

This can easily be done in Scratch as well, using a Broadcast message.  On the stage, set up a "When Stage Clicked" hat block and then a Broadcast block.  Make up a message name such as Come Here for the broadcast.  Then, on the sprite, set up a "When I Receive" hat block for the Come Here message and then have a block like "Glide 2 Sec to Mouse X, Mouse Y".  You will find the Mouse X and Y things under Sensing.  Hope that helps...let me know if you want a demo.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer