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

#1 2010-07-24 13:29:13

Gveradux
Scratcher
Registered: 2010-06-18
Posts: 100+

I need a script for walking in mid air.

I need a script for walking in mid air. could I have it on tinypic please, thanks.

Offline

 

#2 2010-07-24 13:35:49

Gveradux
Scratcher
Registered: 2010-06-18
Posts: 100+

Re: I need a script for walking in mid air.

I've used This Project's Script to jump, but I can't be able to move, help?

Offline

 

#3 2010-07-24 14:52:02

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: I need a script for walking in mid air.

Just do the normal movement scripts.

/When [right arrow] pressed\
[Move (5) steps]

Most projects do something to make it smoother, but that's enough for it to work in the air.

I don't really see what you are having a problem with.

I will get a tinypic if you want one, but that is clear enough to see I think.

Last edited by colorfusion (2010-07-24 14:52:36)

Offline

 

#4 2010-07-24 14:55:55

Gveradux
Scratcher
Registered: 2010-06-18
Posts: 100+

Re: I need a script for walking in mid air.

I've tried, but it won't work.

Offline

 

#5 2010-07-24 15:00:04

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: I need a script for walking in mid air.

Upload the project?
I don't see any reason why it should not work

Offline

 

#6 2010-07-24 15:11:51

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: I need a script for walking in mid air.

Ah - it's because the script has gravity. I'll try to help (sorry that these are forum blocks, but they should still help...

[blocks]
JOIN ON TO BOTTOM OF JUMP SCRIPT
<if><< <key[ right arrow ]pressed?> <or> <key[ left arrow ]pressed?> >>
<if><< <key[ right arrow ]pressed?>
<move( 10 )steps>
<else>
<move( -10 )steps>
<else>
GRAVITY SCRIPT HERE (the "change y by ( - something)" bit)[/blocks]

Hope this helps  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#7 2010-07-24 15:14:24

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: I need a script for walking in mid air.

Wolfie1996 wrote:

Ah - it's because the script has gravity. I'll try to help (sorry that these are forum blocks, but they should still help...

[blocks]
JOIN ON TO BOTTOM OF JUMP SCRIPT
<if><< <key[ right arrow ]pressed?> <or> <key[ left arrow ]pressed?> >>
<if><< <key[ right arrow ]pressed?>
<move( 10 )steps>
<else>
<move( -10 )steps>
<else>
GRAVITY SCRIPT HERE (the "change y by ( - something)" bit)[/blocks]

Hope this helps  smile

That would stop gravity working when moving, I think he means that you can move while still falling

Offline

 

#8 2010-07-24 15:24:01

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: I need a script for walking in mid air.

Ohhh - starting a whole new script for left and right controls would work, then  smile  Something like:

[blocks]
<when green flag clicked>
<forever>
<if><key[ left arrow ]pressed?>
<change x by( -10
<end>
<if><key[ right arrow ]pressed?>
<change x by( 10
<end>[/blocks]


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

Board footer