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

#1 2012-07-12 14:07:55

Awesome_Projects_C
Scratcher
Registered: 2012-06-30
Posts: 29

Platformer Bug

In Stickman's Quest (v. 1.3), I fixed a bug that causes the player to jump even if they fall off of the platform, but if you hold the jump button, it flies up.  Can anyone help me?

~~Firedrake969

Offline

 

#2 2012-07-12 15:50:10

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: Platformer Bug

make the variable "jumping" then add this to the beginning of your jump script: set jumping to 1, then add set jumping to 0 at the end of the jump script then go to the gravity script and insert if jumping = 0 then gravity. This will allow you to jump. Next in the jumping at the top put if y velocity = 0 jump.  This way the character can't jump unless the velocity is 0 which only happens once you've landed.


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#3 2012-07-12 15:51:04

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

Re: Platformer Bug

I already have something like that...


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

Offline

 

#4 2012-07-12 16:01:47

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: Platformer Bug

How about if touching color ____, or sprite ___?


........................................................................................................................................................................................................................................

Offline

 

#5 2012-07-12 16:03:41

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

Re: Platformer Bug

That's what I have...


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

Offline

 

Board footer