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

#1 2010-10-09 13:50:37

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

easy bounce

I'm not sure where this go's.
Anyway, instead of some crazy formula you can simply say:
if touching<sprite1>{
set <x> to < x position>
set <y> to < y position>
move <500> steps
if on edge bounce
go to x<x> y<y>
move<*> steps }
smile  I think it works any way.
*suggested go away speed <previous velocity * 2>

Last edited by poopo (2010-10-09 14:00:14)


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#2 2010-10-09 17:50:54

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: easy bounce

This goes in 'All About Scratch'.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#3 2010-10-09 21:38:29

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: easy bounce

Hm... There are much simpler ways to do this, I believe. But I do like your script - it's quite simple, just not as much as it could be!

Offline

 

#4 2010-10-10 10:13:28

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: easy bounce

@rubiks_cube_guy238 It's not a question so I think it goes here. Oh it did get moved it's ok.
@coolstuff Yeah I bet there is an easyier way, but thanks for saying you liked it.

Last edited by poopo (2010-10-10 10:15:18)


http://i45.tinypic.com/28rnqki.jpg

Offline

 

Board footer