Discuss Scratch

Shaun-the-Sheep
Scratcher
86 posts

How do you make your sprite move diagonal?

I mostly wan't to know how to go up and right at the same time.
1234abcdcba4321
Scratcher
1000+ posts

How do you make your sprite move diagonal?

change x by (10)
change y by (10)
Shaun-the-Sheep
Scratcher
86 posts

How do you make your sprite move diagonal?

Thanks for the suggestions! I'm following you
Hi_3000
New Scratcher
1 post

How do you make your sprite move diagonal?

Help I need help on making the sprite move diagonal by pressing two buttens together!
1234abcdcba4321
Scratcher
1000+ posts

How do you make your sprite move diagonal?

Hi_3000 wrote:

Help I need help on making the sprite move diagonal by pressing two buttens together!
whats your current script?

Also, try not to necro.
Zacshap21
Scratcher
100+ posts

How do you make your sprite move diagonal?

when green flag clicked
if <key [up arrow] pressed?> then
if <key [right arrow v] pressed?> then

change x by (4)
change y by (4)
end
change y by (4)
end

This is only a portion of the script. This makes it able to go up and right at the same time.

Last edited by Zacshap21 (June 20, 2014 00:39:56)

Braeden5454
Scratcher
500+ posts

How do you make your sprite move diagonal?

Hi_3000 wrote:

Help I need help on making the sprite move diagonal by pressing two buttens together!
Please create your own thread.
Nyargleblargle
Scratcher
73 posts

How do you make your sprite move diagonal?

Zacshap21 wrote:

when green flag clicked
if <key [up arrow] pressed?> then
if <key [right arrow v] pressed?> then

change x by (4)
change y by (4)
end
change y by (4)
end

This is only a portion of the script. This makes it able to go up and right at the same time.

That would make the sprite go up by 8 and to the right by 4.

when green flag clicked
if <key [up arrow] pressed?> then
if <key [right arrow] pressed> then
change x by (4)
end
change y by (4)
end
Shaun-the-Sheep
Scratcher
86 posts

How do you make your sprite move diagonal?

Nyargleblargle wrote:

Zacshap21 wrote:

when green flag clicked
if <key [up arrow] pressed?> then
if <key [right arrow v] pressed?> then

change x by (4)
change y by (4)
end
change y by (4)
end

This is only a portion of the script. This makes it able to go up and right at the same time.

That would make the sprite go up by 8 and to the right by 4.

when green flag clicked
if <key [up arrow] pressed?> then
if <key [right arrow] pressed> then
change x by (4)
end
change y by (4)
end
Oh they did two y
BeemoJr
Scratcher
4 posts

How do you make your sprite move diagonal?

It Doesn't Work For Me.
derpydash20
Scratcher
7 posts

How do you make your sprite move diagonal?

i think its dis:when clickedif key up arrow pressed? thenif key right arrow pressed? thenchange x by 4change y by 4change y by 4

sorry i dunno how to do the screenshots…



Follow pls!
ZeMagma
New Scratcher
1 post

How do you make your sprite move diagonal?

when green flag clicked
forever

if <key [ v] pressed?> then
point in direction ( v)
move () steps

end

end


Worked Perfectly for me
hchillin
New Scratcher
1 post

How do you make your sprite move diagonal?

how do I move diagonal using right and up but also beable to go up and right
tristan_b
Scratcher
8 posts

How do you make your sprite move diagonal?

when green flag clicked
if <key [ up arrow] pressed?> then
if <key [ right arrow] pressed?> then

change x by (10)
change y by (5)
end
change y by (5)
end

there and If you want to go left just jange the right arrow to left arrow
tristan_b
Scratcher
8 posts

How do you make your sprite move diagonal?

and jange the

change x by (10)
change x by (-10)
tristan_b
Scratcher
8 posts

How do you make your sprite move diagonal?

when green flag clicked
forever
if <key [ up arrow] pressed?> then
change y by (10)
end
if <key [ left arrow] pressed?> then
change x by (-10)
end
if <key [ right arrow] pressed?> then
set x to (10)
end
end

its the whole script for up left right
Camo-Dude
Scratcher
500+ posts

How do you make your sprite move diagonal?

here is what I would recommend doing this:
when green flag clicked
forever
if <key [right arrow v] pressed?> then
change x by (5)
end
end

when green flag clicked
forever
if <key [left arrow v] pressed?> then
change x by (-5)
end
end

when green flag clicked
forever
if <key [up arrow v] pressed?> then
change y by (5)
end
end

when green flag clicked
forever
if <key [down arrow v] pressed?> then
change y by (-5)
end
end
Paddle2See
Scratch Team
1000+ posts

How do you make your sprite move diagonal?

Since this topic hasn't seen a new post from the topic owner in a long time, I'm going to assume that it is dead and close the topic. If it still is alive, the topic owner just needs to use the Report button to ask a mod to reopen it

Powered by DjangoBB