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

#1 2008-07-22 21:34:48

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Help.

I need help with the friction ball.I wanna make a wall when it touches the color black.

Offline

 

#2 2008-07-22 21:59:14

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Help.

Well, I haven't looked at the scripts, but I'd imagine you would do something ike this:


<if><touching color[ Black
<point in direction( (( 180  <-> <direction>  ))
<move( (( -1  <*> <{ friction }>  )) )steps>

Jus something to reverse the variable (I don't think you need the point in direction though)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-07-22 22:03:50

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Help.

It uses x and y velocity.

Offline

 

#4 2008-07-22 22:06:58

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Help.

keroro645 wrote:

It uses x and y velocity.

Alright. do this script:

<if><touching color[ black
<set{ velocities }to( (( -1  <*> <{ velocity }>  ))

But coorespond each variable to the proper key. I.E., Y velocity to up arrow


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#5 2008-07-22 22:20:27

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Help.

Bluestribute wrote:

But coorespond each variable to the proper key. I.E., Y velocity to up arrow

What do you mean?

Offline

 

#6 2008-07-22 22:21:56

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Help.

keroro645 wrote:

Bluestribute wrote:

But coorespond each variable to the proper key. I.E., Y velocity to up arrow

What do you mean?

Well, you don't want X velocity with the up arrow.


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#7 2008-07-23 01:07:23

newareagle
Scratcher
Registered: 2008-06-10
Posts: 100+

Re: Help.

Keroroo. I have been searching for a similiar way to make something like this. I have finally found the simplest way to do so. First of all You want to Forever move x / Friction Steps. Then you want to make the vertical and horizantal walls different colors. Then make it so if touching (Horizantal wall color) Point in Direction 180-direction. if touching (vertical wall color) Point in Direction Direction*-1.


My Guitar Hero Game.
8/9 Projects on the Front Page at Once!

Offline

 

#8 2008-07-23 01:19:53

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Help.

I just tested my way. I works perfectly! Just set each variable to itself times -1!


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#9 2008-07-23 10:46:37

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Help.

I like Bluestributes way.

Offline

 

#10 2008-07-23 10:48:26

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Help.

keroro645 wrote:

I like Bluestributes way.

Creates that nice bouncing effect, huh? And looks awesome too!


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#11 2008-07-23 22:13:29

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Help.

How do you make a gravity ball into a bouncing ball so it bounces when it touches the color black?

Offline

 

#12 2008-07-24 00:38:20

newareagle
Scratcher
Registered: 2008-06-10
Posts: 100+

Re: Help.

Whats a gravity ball in the first place? You mean it has no gravity acted upon it until it hits the black?


My Guitar Hero Game.
8/9 Projects on the Front Page at Once!

Offline

 

Board footer