Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » NEED PLATFORMING SCRIPTS!
- groko13
- Scratcher
100+ posts
NEED PLATFORMING SCRIPTS!
Hello! I am making a platformer, and I just need some basic platforming scripts. (Moving, jumping, moving while jumping, etc.) I will credit anyone that helps.
Keep on Scratchin' ,
Groko13
Keep on Scratchin' ,
Groko13
-This post was brought to you by me.
- ConsoleBlue
- New to Scratch
2 posts
NEED PLATFORMING SCRIPTS!
Here, use this one, I made it on my second account: http://scratch.mit.edu/projects/20867651/
- groko13
- Scratcher
100+ posts
NEED PLATFORMING SCRIPTS!
http://scratch.mit.edu/projects/20867651/Thanks! Here, use this one, I made it on my second account:
-This post was brought to you by me.
- mojohill
- Scratcher
100+ posts
NEED PLATFORMING SCRIPTS!
I'll help in a second, I'm just testing how to put blocks in a forum post.
- mojohill
- Scratcher
100+ posts
NEED PLATFORMING SCRIPTS!
when green flag clicked
forever
set x to (14)
end
- mojohill
- Scratcher
100+ posts
NEED PLATFORMING SCRIPTS!
Hello! I am making a platformer, and I just need some basic platforming scripts. (Moving, jumping, moving while jumping, etc.) I will credit anyone that helps.
Keep on Scratchin' ,
Groko13
Okay, I'm going to try to help the best I can:
when green flag clicked
forever
change [Yv v] by (-1)
if <key [right arrow v] pressed?> then
change [Xv v] by (1)
if <key [left arrow v] pressed?> then
change [Xv v] by (-1)
change y by (-1)
if <touching color [black]?> then
if <key [up arrow v] pressed?> then
change [Yv v] by (15)
change y by (1)
set [Xv v] to ((Xv) * (0.9))
change x by (Xv)
if <touching color [black]?> then
change x by ((Xv) * (-1))
if <key [up arrow v] pressed?> then
if <(Xv) < [0]> then
set [Xv v] to [-8]
else
set [Xv v] to [8]
set [Yv v] to [10]
end
else
set [Xv v] to [0]
change y by (Yv)
if <touching color [black]?> then
change y by ((Yv) * (-1))
set [Yv v] to [0]
end
end
end
end
end
end
end
end
end
end
- mojohill
- Scratcher
100+ posts
NEED PLATFORMING SCRIPTS!
Hello! I am making a platformer, and I just need some basic platforming scripts. (Moving, jumping, moving while jumping, etc.) I will credit anyone that helps.
Keep on Scratchin' ,
Groko13
Okay, I'm going to try to help the best I can:when green flag clicked
forever
change [Yv v] by (-1)
if <key [right arrow v] pressed?> then
change [Xv v] by (1)
if <key [left arrow v] pressed?> then
change [Xv v] by (-1)
change y by (-1)
if <touching color [black]?> then
if <key [up arrow v] pressed?> then
change [Yv v] by (15)
change y by (1)
set [Xv v] to ((Xv) * (0.9))
change x by (Xv)
if <touching color [black]?> then
change x by ((Xv) * (-1))
if <key [up arrow v] pressed?> then
if <(Xv) < [0]> then
set [Xv v] to [-8]
else
set [Xv v] to [8]
set [Yv v] to [10]
end
else
set [Xv v] to [0]
change y by (Yv)
if <touching color [black]?> then
change y by ((Yv) * (-1))
set [Yv v] to [0]
end
end
end
end
end
end
end
end
end
end
Sorry don't look at that I did it wrong. If you use that it will not work.
- groko13
- Scratcher
100+ posts
NEED PLATFORMING SCRIPTS!
I already have platformer scripts but if I get more I will use them in other platformers.Hello! I am making a platformer, and I just need some basic platforming scripts. (Moving, jumping, moving while jumping, etc.) I will credit anyone that helps.
Keep on Scratchin' ,
Groko13
Okay, I'm going to try to help the best I can:when green flag clicked
forever
change [Yv v] by (-1)
if <key [right arrow v] pressed?> then
change [Xv v] by (1)
if <key [left arrow v] pressed?> then
change [Xv v] by (-1)
change y by (-1)
if <touching color [black]?> then
if <key [up arrow v] pressed?> then
change [Yv v] by (15)
change y by (1)
set [Xv v] to ((Xv) * (0.9))
change x by (Xv)
if <touching color [black]?> then
change x by ((Xv) * (-1))
if <key [up arrow v] pressed?> then
if <(Xv) < [0]> then
set [Xv v] to [-8]
else
set [Xv v] to [8]
set [Yv v] to [10]
end
else
set [Xv v] to [0]
change y by (Yv)
if <touching color [black]?> then
change y by ((Yv) * (-1))
set [Yv v] to [0]
end
end
end
end
end
end
end
end
end
end
Sorry don't look at that I did it wrong. If you use that it will not work.
-This post was brought to you by me.
- Discussion Forums
- » Help with Scripts
- » NEED PLATFORMING SCRIPTS!