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

#1 2008-04-17 20:00:13

viper650
Scratcher
Registered: 2008-04-04
Posts: 36

Still a problem with jumping

I used archmage's jumping script that he put in  the "jumping help" topic, but all it does is make my character go higher in the air when i press up and he doesnt come down. Please help!

Offline

 

#2 2008-04-17 20:04:09

viper650
Scratcher
Registered: 2008-04-04
Posts: 36

Re: Still a problem with jumping

Also, how do you put music into your project. My music doesnt show up when i go to import audio

Offline

 

#3 2008-04-17 20:07:44

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Still a problem with jumping

For the jumping, post the project so people can see whats wrong. Also the music thing should work. .wav or .mp3 files are good to use.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2008-04-17 20:49:37

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Still a problem with jumping

archmage wrote:

For the jumping, post the project so people can see whats wrong. Also the music thing should work. .wav or .mp3 files are good to use.

But sadly midis do not work.  sad   I mean their so good!


http://i.imgur.com/WBkM2QQ.png

Offline

 

#5 2008-04-17 21:03:17

viper650
Scratcher
Registered: 2008-04-04
Posts: 36

Re: Still a problem with jumping

Ok heres my jumping script that i followed archmage on: (and btw i had to modify a bit cuz my game is scrolling)

<when green flag clicked>
<set{ yVelocity }to( 0
<forever>
<if><< <touching[ sprite2 <or> << <touching[ sprite3 <or> << <touching[ sprite4 <and> <key[ up arrow ]pressed?> >> >> >>
<set{ yVelocity }to( 1
<if><key[ up arrow ]pressed?>
<set{ yVelocity }to( 15
<end>
<change{ yVelocity }by( -1
<change y by( <{ yVelocity }>

and that's it

Offline

 

#6 2008-04-17 21:38:04

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: Still a problem with jumping

wat r sprites 2, 3 and 4?

Last edited by funkymonkey (2008-04-17 21:38:12)


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#7 2008-04-17 21:56:20

viper650
Scratcher
Registered: 2008-04-04
Posts: 36

Re: Still a problem with jumping

Those are the scrolling sprites

Offline

 

Board footer