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

#1 2012-12-11 12:32:11

firedrake969_test
Scratcher
Registered: 2012-08-08
Posts: 500+

Grappling hook

Here.  THe scripts and title should be rather self explanatory.


Alt of Firedrake969.

Offline

 

#2 2012-12-11 19:59:58

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Grappling hook

Wumpus


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#3 2012-12-12 12:11:42

firedrake969_test
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: Grappling hook

Firedrake969 wrote:

Wumpus


Alt of Firedrake969.

Offline

 

#4 2012-12-12 18:04:31

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

Re: Grappling hook

Around when do you need this fixed by?


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

Offline

 

#5 2012-12-12 20:38:32

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Grappling hook

ErnieParke wrote:

Around when do you need this fixed by?

Anytime.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#6 2012-12-13 12:13:15

firedrake969_test
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: Grappling hook

Firedrake969 wrote:

ErnieParke wrote:

Around when do you need this fixed by?

Anytime.

The sooner the better, preferably by Jan 1.


Alt of Firedrake969.

Offline

 

#7 2012-12-13 16:27:59

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

Re: Grappling hook

firedrake969_test wrote:

Firedrake969 wrote:

ErnieParke wrote:

Around when do you need this fixed by?

Anytime.

The sooner the better, preferably by Jan 1.

I won't need that much time, in fact, your glitch is pretty simple. In your main character, you have a script like this:

when I receive [hit v]
set [# v] to [1]
repeat (length of [coords v])
 go to x: (item (#) of [coords v]) y: (item ((#) +(1)) of [coords v])
 change [# v] by (2)
end
broadcast [grappled v]

The one thing you'll need to change in this script to fix your grappling hook is that the repeat loop needs to run the (length of [coords v] / 2) times, and not just (length (#) of [coords v]) times.

Now, to forwarn you, there's another glitch in your grappling hook where you'll get stuck in the walls, but you should be able to fix that.

Anyway, I hope that this helps!


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

Offline

 

Board footer