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

#1 2011-03-10 13:06:37

Jojorocks254
Scratcher
Registered: 2010-10-19
Posts: 23

Bounce block

I want a block to make a sprite bounce off another one like "when flag clicked, forever if touching sprite 2 then bounce" Reply if u want this!


Click my dragons!
http://dragcave.net/image/B5bo.gif
http://dragcave.net/image/YkUi.gif
http://dragcave.net/image/kldO.gif

Offline

 

#2 2011-03-10 16:32:43

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Bounce block

"If touching edge, bounce" bounces the sprite relative to the wall. How would a sprite know which way to bounce with your suggestion?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2011-03-10 21:33:40

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Bounce block

Sorry but I don't support. The 'bounce' blocks are just too convenient. I actually deleted the block from my copy of Scratch because of that. Besides, it can be replicated by:

[point in direction: (180 - (direction) )]


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#4 2011-03-10 21:42:34

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Bounce block

ScratchReallyROCKS wrote:

Sorry but I don't support. The 'bounce' blocks are just too convenient. I actually deleted the block from my copy of Scratch because of that. Besides, it can be replicated by:

[point in direction: (180 - (direction) )]

I honestly don't see why you feel the bounce block is "too convenient." It's helpful for inexperienced Scratchers that wouldn't be able to figure out how to make it otherwise. I can understand not supporting a bunch of easy-made scripts, but what's the big deal about this one block?  hmm


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#5 2011-03-10 22:33:23

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Bounce block

Harakou wrote:

ScratchReallyROCKS wrote:

Sorry but I don't support. The 'bounce' blocks are just too convenient. I actually deleted the block from my copy of Scratch because of that. Besides, it can be replicated by:

[point in direction: (180 - (direction) )]

I honestly don't see why you feel the bounce block is "too convenient." It's helpful for inexperienced Scratchers that wouldn't be able to figure out how to make it otherwise. I can understand not supporting a bunch of easy-made scripts, but what's the big deal about this one block?  hmm

I understand how it could help inexperienced scratchers, but I think that a 'bounce' block that inverts the sprite's direction by itself would be sufficient. That way you could put in into an [if <touching edge>] block to replicate the [if on edge, bounce] block. The problem is, the [if on edge, bounce] block is clearly 3 blocks in one: if, on edge, and bounce. It teaches bad programming habits, because people aren't always going to be able to rely on heavily pre-programmed methods implemented into the API. Also, why make only one block like that? If they are going to follow that model, they could easily make a [if on edge, change <variable> by 1] block. See what I mean by too convenient now? I guess I over exaggerated what I meant before, The [if on edge, bounce] teaches bad programming habits, but a [bounce] block wouldn't.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#6 2011-03-10 23:23:51

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Bounce block

Shouldn't Scratchers be programming physics themselves instead of having it all done for them? I can understand that some people want to get new blocks to make things easier, but there has to be a limit.  hmm


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#7 2011-03-11 00:04:43

hdarken
Scratcher
Registered: 2008-06-26
Posts: 1000+

Re: Bounce block

The reason we don't have the bounce block is because it would be to confusing for Squeak. See what Paddle2See wrote about it.


http://i.imgur.com/VskBk.png
http://i.imgur.com/tgxVZ.jpg

Offline

 

#8 2011-03-11 17:32:17

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Bounce block

ScratchReallyROCKS wrote:

Harakou wrote:

ScratchReallyROCKS wrote:

Sorry but I don't support. The 'bounce' blocks are just too convenient. I actually deleted the block from my copy of Scratch because of that. Besides, it can be replicated by:

[point in direction: (180 - (direction) )]

I honestly don't see why you feel the bounce block is "too convenient." It's helpful for inexperienced Scratchers that wouldn't be able to figure out how to make it otherwise. I can understand not supporting a bunch of easy-made scripts, but what's the big deal about this one block?  hmm

I understand how it could help inexperienced scratchers, but I think that a 'bounce' block that inverts the sprite's direction by itself would be sufficient. That way you could put in into an [if <touching edge>] block to replicate the [if on edge, bounce] block. The problem is, the [if on edge, bounce] block is clearly 3 blocks in one: if, on edge, and bounce. It teaches bad programming habits, because people aren't always going to be able to rely on heavily pre-programmed methods implemented into the API. Also, why make only one block like that? If they are going to follow that model, they could easily make a [if on edge, change <variable> by 1] block. See what I mean by too convenient now? I guess I over exaggerated what I meant before, The [if on edge, bounce] teaches bad programming habits, but a [bounce] block wouldn't.

Actually, no. Try what you just said yourself; it doesn't work.  tongue


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer