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

#1 2012-04-24 12:53:39

HydroCity
New Scratcher
Registered: 2012-02-09
Posts: 35

Help with jumping?

Im using the script from the Wiki under "Physically accurate jumping" but whenever i click on go, my sprite with the script just starts falling and wont land on the platform, I checked the color and everything.

Offline

 

#2 2012-04-24 12:57:11

HydroCity
New Scratcher
Registered: 2012-02-09
Posts: 35

Re: Help with jumping?

I just uploaded the game with the script on my stuff. under X100_

Offline

 

#3 2012-04-24 15:00:08

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Help with jumping?

^^^don't think it works for me...
HydroCity, maybe you could upload a test of the game so we can see what exactly the problem is. The one on the Wiki works for me so double-check everything is the same. Are you sure you have the platform colour/sprite set correctly in the script?


http://i46.tinypic.com/ao03lk.png

Offline

 

#4 2012-04-24 18:54:34

HydroCity
New Scratcher
Registered: 2012-02-09
Posts: 35

Re: Help with jumping?

http://scratch.mit.edu/projects/HydroCity/2492272
heres the link to the test. I dont see what could be the problem

Offline

 

#5 2012-04-25 12:02:47

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Help with jumping?

It is possible that the ground is too thin. If yvel is too big, it will skip right past it.


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#6 2012-04-25 14:16:15

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Help with jumping?

I've fixed it. Basically, you got the colours in the script wrong and the ScriptHolder sprite was constantly changing yvel even if sprite1 was on the floor. I've uploaded the fixed one
http://scratch.mit.edu/projects/PhirripSyrrip/2494889
NOTE: sometimes you have to press the green flag multiple times for the sprite to fall, or you can press space.


http://i46.tinypic.com/ao03lk.png

Offline

 

#7 2012-04-25 14:21:16

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Help with jumping?

Oh, and sorry for my first message, I didn't realise that was you!


http://i46.tinypic.com/ao03lk.png

Offline

 

Board footer