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

#1 2012-09-13 09:45:01

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

List velocity

It tried it ... Doesn't work.help


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#2 2012-09-13 11:27:56

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: List velocity

What are you wanting to do exactly?


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

#3 2012-09-13 11:52:09

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: List velocity

Change xv by last of list


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#4 2012-09-14 12:19:37

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: List velocity

when gf clicked
forever
add (velocity) to [list v]
delete [1 v] of [list v]
Try this.


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#5 2012-09-14 12:20:48

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: List velocity

It may not work very well because it will constantly be deleting item 1 of the list will get annoying to watch.


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#6 2012-09-14 12:56:34

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: List velocity

Then is it?

when gf clicked
change x by {list}
stop script


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

#7 2012-09-14 13:11:39

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: List velocity

There is a block;

(item [last v] of list) //It looks reddish in the Scratch Program
Just use this block with the other's you're using.

Last edited by sonicfan12p (2012-09-14 13:12:30)


Why are the secret organizations getting all the attention?  mad

Offline

 

#8 2012-09-14 15:59:21

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: List velocity

sonicfan12p wrote:

There is a block;

(item (last v) of [list v]) //It looks reddish in the Scratch Program
Just use this block with the other's you're using.

Fixed.

EDIT: wow.

Last edited by BirdByte (2012-09-14 16:00:02)


http://i50.tinypic.com/312u714.jpg

Offline

 

#9 2012-09-14 16:15:41

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: List velocity

Jodymoses wrote:

Then is it?

when gf clicked
change x by (list)
stop script

Fixed.

bullelk12 wrote:

It may not work very well because it will constantly be deleting item 1 of the list will get annoying to watch.

It would work better when compared to not deleting the last item. Why? Because then you won't have a list 1,000 items long.

Last edited by ErnieParke (2012-09-14 16:17:16)


http://i46.tinypic.com/35ismmc.png

Offline

 

#10 2012-09-14 16:20:52

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: List velocity

Or, you can use...

set [variable v] to (item (length of [list v]) of [list v])
...to access the last item.

Last edited by amcerbu (2012-09-14 16:21:18)

Offline

 

#11 2012-09-16 14:07:13

Jodymoses
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: List velocity

Yep that could work and thanx for the fix


http://i46.tinypic.com/2hxwx9s.png
I Have Huge Ideas, But Only If You Listen And Talk To Me...

Offline

 

Board footer