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

#1 2011-04-20 09:27:42

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Interesting Ideas

1. detecting if all the colors in a grid are the same
STATUS: COMPLETE. i already thought of a way to do this.

2. detecting the direction a sprite is spinning
STATUS: NO CLUE. i first saw this employed in a flash game and i'm wondering if it could be reproduced in Scratch.
Any ideas?


http://i45.tinypic.com/35m4llw.gif

Offline

 

#2 2011-04-20 12:17:17

SpriteMaster
Scratcher
Registered: 2009-01-25
Posts: 1000+

Re: Interesting Ideas

Well, I'm sure it could be figured out with some sensing and motion blocks....hmmm...


`                        Click here for my YouTube channel!                        `http://i.imgur.com/4Qz3I.jpg

Offline

 

#3 2011-04-20 17:01:07

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: Interesting Ideas

SpriteMaster wrote:

Well, I'm sure it could be figured out with some sensing and motion blocks....hmmm...

well, i'm pretty sure it would involve variables and sensing sprites


http://i45.tinypic.com/35m4llw.gif

Offline

 

#4 2011-04-21 15:35:31

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: Interesting Ideas

bunp


http://i45.tinypic.com/35m4llw.gif

Offline

 

#5 2011-04-21 15:52:40

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Interesting Ideas

Detecting which way a sprite is rotating?  Sounds rather easy (  tongue  ).  Give me a second.

http://i53.tinypic.com/30cn58p.gif

Edit:  Patched.

Last edited by Kileymeister (2011-04-22 19:58:57)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#6 2011-04-21 15:54:39

TheBlueRocky
Scratcher
Registered: 2010-07-08
Posts: 500+

Re: Interesting Ideas

#2:

[Found mistake]

When you press space it turns in a random direction and tells you which.  big_smile

Last edited by TheBlueRocky (2011-04-21 17:03:56)

Offline

 

#7 2011-04-21 16:20:26

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: Interesting Ideas

Kileymeister wrote:

Detecting which way a sprite is rotating?  Sounds rather easy (  tongue  ).  Give me a second.

http://i51.tinypic.com/15pkhnm.gif

Edit:  Patched.

good, I'm going to try it.


http://i45.tinypic.com/35m4llw.gif

Offline

 

#8 2011-04-21 16:29:23

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: Interesting Ideas

Kileymeister wrote:

Detecting which way a sprite is rotating?  Sounds rather easy (  tongue  ).  Give me a second.

http://i51.tinypic.com/15pkhnm.gif

Edit:  Patched.

don't you mean 'stationary'?


http://i45.tinypic.com/35m4llw.gif

Offline

 

#9 2011-04-21 16:34:30

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Interesting Ideas

echs wrote:

don't you mean 'stationary'?

D'oh, yes.  Whatever, a typo's not too important.

Last edited by Kileymeister (2011-04-21 16:34:42)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#10 2011-04-21 16:35:05

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: Interesting Ideas

That was fast.  tongue


http://i45.tinypic.com/35m4llw.gif

Offline

 

#11 2011-04-21 16:43:38

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: Interesting Ideas

Kileymeister wrote:

Detecting which way a sprite is rotating?  Sounds rather easy (  tongue  ).  Give me a second.

http://i51.tinypic.com/15pkhnm.gif

Edit:  Patched.

It didn't work. Every time the sprite moved past 0 or 180, it changed.


http://i45.tinypic.com/35m4llw.gif

Offline

 

#12 2011-04-21 16:44:55

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Interesting Ideas

echs wrote:

Kileymeister wrote:

Detecting which way a sprite is rotating?  Sounds rather easy (  tongue  ).  Give me a second.

http://i51.tinypic.com/15pkhnm.gif

Edit:  Patched.

It didn't work. Every time the sprite moved past 0 or 180, it changed.

Are you sure?  It works perfectly for me even past those markers.  Did you use the edited patched one?  Did you recreate it correctly?

Last edited by Kileymeister (2011-04-21 16:45:54)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#13 2011-04-21 16:57:04

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: Interesting Ideas

I recreated it exactly, except I changed the variable names.


http://i45.tinypic.com/35m4llw.gif

Offline

 

#14 2011-04-21 17:03:09

TheBlueRocky
Scratcher
Registered: 2010-07-08
Posts: 500+

Re: Interesting Ideas

Did you leave the repeat 1 time blank? Otherwise it won't work properly.

Offline

 

Board footer