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

#1 2012-01-23 00:21:10

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

vehical block

i would like a block that sets a sprite to vehical to another sprite this means it will not alwas be going to the sprite but it will move with it her is an example


when green flag clicked
set vehical of [sprite1] to [sprite 2]


then no matter were sprite 1 on the field is if sprite 2 goes up down left or right it moves with
it also lets it rotate around a turning sprite

THIS IS NOT THE SAME AS

[blocks]<forever>
<go to[ sprite]
<end> [/blocks]

Last edited by slayerrobe7 (2012-01-25 20:20:20)


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#2 2012-01-23 07:55:12

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: vehical block

You could just use the go to sprite block for that.

Offline

 

#3 2012-01-23 12:08:11

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: vehical block

i dont want it to go to a sprite i want ti to move with sprite


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#4 2012-01-23 15:16:11

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: vehical block

slayerrobe7 wrote:

i dont want it to go to a sprite i want ti to move with sprite

Use a repeat or forever block.

It will go to the sprite until it stops.

Last edited by owetre18 (2012-01-23 15:16:21)

Offline

 

#5 2012-01-23 20:50:20

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: vehical block

(sigh) no

suppose sprite 1 and 2 are 20 steps away sprite 2 is vehicaled  to sprite1 sprite 1 moves ten steps and because sprite 2 is vehicaled it moves 10 steps also and is still 20 steps away


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#6 2012-01-24 01:33:50

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: vehical block

bump


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#7 2012-01-24 01:52:56

Fordark
Scratcher
Registered: 2010-08-02
Posts: 100+

Re: vehical block

Ooh, ooh I know! It's like a sprite following another sprite!
http://dl.dropbox.com/u/34855482/done.gif


http://dl.dropbox.com/u/34855482/Fordarksig.png

Offline

 

#8 2012-01-24 08:15:19

Bsteward
Scratcher
Registered: 2010-04-13
Posts: 100+

Re: vehical block

I am not sure what vehical means, do you mean vehicle?


Interested in the future of Scratch?http://ffs.us.to/1.png
http://i40.tinypic.com/2i9jejd.jpgIt has http://bit.ly/Ol3MfD views. Click to add one more!

Offline

 

#9 2012-01-24 11:41:29

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: vehical block

yes and yes


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#10 2012-01-24 11:59:33

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: vehical block

the difference between that script and vehicle it rotating around the sprite lets assume you use that script to hold the upper and lower arm of a person together th upper arm turns the lower arm stays still how do you fix that you need a vehicle block


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#11 2012-01-24 12:04:54

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: vehical block

slayerrobe7 wrote:

the difference between that script and vehicle it rotating around the sprite lets assume you use that script to hold the upper and lower arm of a person together th upper arm turns the lower arm stays still how do you fix that you need a vehicle block

Or you could use two different arm sprites...

Offline

 

#12 2012-01-24 12:21:27

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: vehical block

ya but you cant have them detach so you need to vehicle them to each;other


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#13 2012-01-24 14:13:57

Fordark
Scratcher
Registered: 2010-08-02
Posts: 100+

Re: vehical block

Okay, so let's use a body sprite, an upper arm sprite and a lower arm sprite.
The upper arm sprite will have its center (in the paint editor you set its center) where its shoulder is. The upper arm can rotate freely that way. The lower arm's center will be the elbow. Then the lower arm will attach to the upper arm like this:

<forever>
[go to upper arm]
[set direction to (direction of upper arm)]
[move {} steps] - Or how long the upper arm is
[set direction to {}] - Or whatever scripts to make the lower arm rotate
<end>


http://dl.dropbox.com/u/34855482/Fordarksig.png

Offline

 

#14 2012-01-25 20:02:07

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: vehical block

no i don't think that would work like vehicle mainly because of a problem with sprite centers


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#15 2012-01-25 20:14:00

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: vehical block

You can already do that without a new block.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#16 2012-01-25 20:17:27

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: vehical block

how


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#17 2012-01-26 00:48:49

Fordark
Scratcher
Registered: 2010-08-02
Posts: 100+

Re: vehical block

slayerrobe7 wrote:

no i don't think that would work like vehicle mainly because of a problem with sprite centers

Work like what kind of vehicle?


http://dl.dropbox.com/u/34855482/Fordarksig.png

Offline

 

#18 2012-01-26 00:57:47

jimmyboy798
New Scratcher
Registered: 2012-01-26
Posts: 19

Re: vehical block

instead of it going to a part of the sprite it maves with it if sprite 1 moved 10 steps so would sprite to in the same direction even if sprite 2 was pointing backwards but if they are distant all stays the same also if sprite1 turns sprite3 rotates around it

Offline

 

#19 2012-01-26 01:03:13

jimmyboy798
New Scratcher
Registered: 2012-01-26
Posts: 19

Re: vehical block

is my assumtion

Offline

 

#20 2012-01-26 10:58:33

iTweak0r
Scratcher
Registered: 2011-07-30
Posts: 100+

Re: vehical block

Like the BYOB Attach feature?


Make it in Scratch! because it's cooler when it's made in scratch
http://i.imgur.com/D4iqPHR.png

Offline

 

#21 2012-01-26 21:04:43

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: vehical block

i dont know what that is so maby


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#22 2012-04-23 15:31:18

iTweak0r
Scratcher
Registered: 2011-07-30
Posts: 100+

Re: vehical block

I think he means "attaching" like in byob


Make it in Scratch! because it's cooler when it's made in scratch
http://i.imgur.com/D4iqPHR.png

Offline

 

#23 2012-04-23 21:56:24

wolvesstar97
Scratcher
Registered: 2011-08-31
Posts: 1000+

Re: vehical block

Okay...
I think this will fix it up.

forever
 point towards [sprite v]
 move (however many, depending on distance required) steps
end
And to fix the sprite centers thing, make another costume with a different center.

Last edited by wolvesstar97 (2012-04-23 21:58:14)


https://dl.dropbox.com/u/33551365/psyko.png

Offline

 

#24 2012-04-24 12:54:48

iTweak0r
Scratcher
Registered: 2011-07-30
Posts: 100+

Re: vehical block

slayerrobe7 wrote:

i dont know what that is so maby

It lets you attach a sprite to another

Example:

It makes it so when the main sprite moves, the other sprite goes with it! (not following or goto)

Think that's what you want!

You can find the app at byob.berkley.edu

And to attach in that scratch version, drag a sprite from the sprite bar into a sprite on the stage.


Make it in Scratch! because it's cooler when it's made in scratch
http://i.imgur.com/D4iqPHR.png

Offline

 

Board footer