Discuss Scratch

czar59
New Scratcher
1 post

how to combine two sprites?

i want to know how to combine two sprites and make them behave as a one unit i.e instead of writing code for moving both the sprites i just want a combined sprite and code it
ChocolateTeapotNot
New Scratcher
100+ posts

how to combine two sprites?

I think what you want are clones, for example
whenclickedcreatecloneofmyselfmove100steps so they are not on top of each other
then both will move when the space key is pressed
whenspacekeypressedglide1secstox:xpositiony:yposition+10
sharkboy05
Scratcher
22 posts

how to combine two sprites?

Yeah. It's easy. Oh and if u want extra script to the clone then do this:
whenclickedmove10scratchblocks)steps/scratchblocksstopallsoundsscratchblocksplaysoundya[scratchblocksv]/scratchblockscreatecloneofmyself[scratchblocksv]whenIstartasacloneforeverifkeyspacepressed?thenchangecoolby0/scratchblocks/scratchblocks
sharkboy05
Scratcher
22 posts

how to combine two sprites?

Yeah. It's easy. Oh and if u want extra script to the clone then do this:
whenclickedmove10stepsstopallsoundsplaysoundya)createcloneofmyself)whenIstartasacloneforeverifkeyspacepressed?thenchangecoolby0

Last edited by sharkboy05 (July 19, 2014 02:17:30)

Cleo264
Scratcher
3 posts

how to combine two sprites?

Um, here is a question kind of like this. Is it possible to have Scratch Character #1 talk, have Scratch Character #2 talk, and than have #1 talk again? Can you show me how???

Thanks so much!!!
Cleo264
Scratcher
3 posts

how to combine two sprites?

Actually, I figured it out! Never mind everybody!
RobynLeFleur
New Scratcher
1 post

how to combine two sprites?

You never really answered my question…
You really smart but you did not explain clearly
vidarfw02
Scratcher
100+ posts

how to combine two sprites?

An easy way is to make both sprites move exactly the same x and y when a broadcast is received…this will make the sprites move exactly at the same time.

In this experiment I use this to put armor on the sprite. Try to click on the different pieces of armor.

http://scratch.mit.edu/projects/25081895


Last edited by vidarfw02 (Oct. 26, 2014 18:36:19)

kp950
New Scratcher
1 post

how to combine two sprites?

vidarfw02 wrote:

An easy way is to make both sprites move exactly the same x and y when a broadcast is received…this will make the sprites move exactly at the same time.

In this experiment I use this to put armor on the sprite. Try to click on the different pieces of armor.

http://scratch.mit.edu/projects/25081895



vidarfw02 Can you please share your project?

It might help me figure out how I can make 3 sprites follow each other as one with a motion action without having to write the same script for each sprite. I don't think cloning helps me here.
deck26
Scratcher
1000+ posts

how to combine two sprites?

This is easy enough actually. Have one sprite move under player control or whatever and then in the other sprite(s) - as many as you want - just do

forevergotox:x positionofsprite1 y:y positionofsprite1

Last edited by deck26 (June 23, 2015 19:18:29)

LTGRemixer
Scratcher
11 posts

how to combine two sprites?

Or just
forevergotosprite1
damsy
New Scratcher
1 post

how to combine two sprites?

idk
john_cena345
New Scratcher
1 post

how to combine two sprites?

how to link all the sprites motion i n one

Powered by DjangoBB