Hey I was just wondering how do you add motion blocks?
And also how can you add a click and move feature?
Offline
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
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.
Offline
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
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.
Offline