Discuss Scratch

NicoywithaL
Scratcher
8 posts

How to make WASD/Left, right, and up movemnt?

I need help with a platformer i'm making
Mooaus2940
Scratcher
90 posts

How to make WASD/Left, right, and up movemnt?

Ahh yes please! May i have an link, i wanna see how your coding it to see what to improve on…
AZBIDABOI
Scratcher
100+ posts

How to make WASD/Left, right, and up movemnt?

NicoywithaL wrote:

I need help with a platformer i'm making
Use some of my code, that'll help.
Florsani11
Scratcher
15 posts

How to make WASD/Left, right, and up movemnt?

Try this without gravity

when green flag clicked
forever
if <key [ w] pressed?> then
point in direction ( 0)
move (4) steps
end
if <key [ a] pressed?> then
point in direction ( -90)
move (4) steps
end
if <key [ s] pressed?> then
point in direction ( 180)
move (4) steps
end
if <key [ d] pressed?> then
point in direction ( 90)
move (4) steps
end
end

This is just an exaple
NicoywithaL
Scratcher
8 posts

How to make WASD/Left, right, and up movemnt?

Mooaus2940 wrote:

Ahh yes please! May i have an link, i wanna see how your coding it to see what to improve on…
I don't know how to code it because my code for it is trash
SpyCoderX
Scratcher
1000+ posts

How to make WASD/Left, right, and up movemnt?

NicoywithaL wrote:

Mooaus2940 wrote:

Ahh yes please! May i have an link, i wanna see how your coding it to see what to improve on…
I don't know how to code it because my code for it is trash
when green flag clicked
forever
change y by ((<key [w v] pressed?>-<key [s v] pressed?>)*(10))
change x by ((<key [d v] pressed?>-<key [a v] pressed?>)*(10))
NicoywithaL
Scratcher
8 posts

How to make WASD/Left, right, and up movemnt?

SpyCoderX wrote:

NicoywithaL wrote:

Mooaus2940 wrote:

Ahh yes please! May i have an link, i wanna see how your coding it to see what to improve on…
I don't know how to code it because my code for it is trash
when green flag clicked
forever
change y by ((<key [w v] pressed?>-<key [s v] pressed?>)*(10))
change x by ((<key [d v] pressed?>-<key [a v] pressed?>)*(10))
But how do I make gravtiy/up movement?

Powered by DjangoBB