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

#1 2010-08-10 14:41:10

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Rope Simulation?

I know this is a big job for such a small project, but if someone could teach me how to make a rope simulation without copying?

EDIT: 3000th post!

Last edited by samurai768 (2010-08-10 14:55:02)

Offline

 

#2 2010-08-10 14:49:21

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Rope Simulation?

samurai768 wrote:

I know this is a big job for such a small project, but if someone could teach me how to make a rope simulation without copying?

How long a rope?  I finally figured out how to do a simple 1 string rope, but I have no idea how to do something like Rhy's rope.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#3 2010-08-10 14:53:33

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Rope Simulation?

AtomicBawm3 wrote:

samurai768 wrote:

I know this is a big job for such a small project, but if someone could teach me how to make a rope simulation without copying?

How long a rope?  I finally figured out how to do a simple 1 string rope, but I have no idea how to do something like Rhy's rope.

The longest it can get without lagging a whole bunch online  tongue  It needs alot of gravity too.

Offline

 

#4 2010-08-10 15:26:44

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Rope Simulation?

No, no.  I mean how many segments.  I can get it any length, but the amount of segments makes it harder.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#5 2010-08-10 15:38:17

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Rope Simulation?

AtomicBawm3 wrote:

No, no.  I mean how many segments.  I can get it any length, but the amount of segments makes it harder.

4, I guess.

Offline

 

#6 2010-08-10 16:04:44

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Rope Simulation?

Well, I don't know exactly how to help you then.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#7 2010-08-10 16:17:44

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Rope Simulation?

AtomicBawm3 wrote:

Well, I don't know exactly how to help you then.

Darn. Anything at all? It doesn't really matter how many segments  tongue

Offline

 

#8 2010-08-10 17:21:09

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Rope Simulation?

Well, you need a few variables, but first, are you using velocity and scrolling?


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#9 2010-08-10 17:27:51

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Rope Simulation?

AtomicBawm3 wrote:

Well, you need a few variables, but first, are you using velocity and scrolling?

Nope. But part of the rope needs to stay stationary, while the other part is stretchy and loose  smile  It's for a virtual simulator of a "Pull my string! I talk!" toy  tongue

Offline

 

#10 2010-08-10 17:56:58

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Rope Simulation?

samurai768 wrote:

AtomicBawm3 wrote:

Well, you need a few variables, but first, are you using velocity and scrolling?

Nope. But part of the rope needs to stay stationary, while the other part is stretchy and loose  smile  It's for a virtual simulator of a "Pull my string! I talk!" toy  tongue

oooooh... that's different than I thought...hmm... I'll see what I can do.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#11 2010-08-10 18:05:33

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Rope Simulation?

Okey-dokey.

Offline

 

#12 2010-08-10 18:29:38

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Rope Simulation?

Alrighty.  I figured out a little of the stuff that I needed, but I've got to go to soccer, so I'll have to work on it later.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#13 2010-08-10 21:26:21

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Rope Simulation?

Ok, I need to know what you want the rope to do.  Is it swinging, zipping back, etc?


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#14 2010-08-10 22:02:41

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Rope Simulation?

AtomicBawm3 wrote:

Ok, I need to know what you want the rope to do.  Is it swinging, zipping back, etc?

Zipping back  smile

Offline

 

#15 2010-08-10 22:11:33

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Rope Simulation?

Well then, you might just need one sprite that goes to the mouse until it reaches a certain distance.  Then it snaps back by changing a variable.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#16 2012-01-24 13:54:46

Javster
Scratcher
Registered: 2011-10-09
Posts: 23

Re: Rope Simulation?

I need help with a rope too! Please help!


<forever><next costume><switch to costume[ <when green flag clicked>


Knowledge is knowing the tomato is a fruit. Wisdom is not putting it in a fruit salad.

Offline

 

Board footer