Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » making a 2 player game
- falconer16
-
New Scratcher
3 posts
making a 2 player game
i have made a 2 player side scroller and when ever both players move one player has to keep spaming the over key to move, how can i make it so they can just hold the over key and both player will move smoothly.
- falconer16
-
New Scratcher
3 posts
making a 2 player game
i have it for player 1 when right arrow key is pressed move 10 steps for player 2 when d is pressed move 10 steps
- pencil90
-
Scratcher
7 posts
making a 2 player game
what do you mean? (can you give me a link because I'm not sure what a side scroller game is)
I think you just should use the w, s, a, and d keys for player 2 and the up, down, left, and right keys for player 1
I think you just should use the w, s, a, and d keys for player 2 and the up, down, left, and right keys for player 1
- falconer16
-
New Scratcher
3 posts
making a 2 player game
thats how i have it but when some one holds down d (or any other key to move) and when player 2 holds down a button it dose not work unless the second person to press a button spams it
- pm203384
-
Scratcher
1 post
making a 2 player game
How do you have it so you can choose if you want only one player or two?
- chowc13
-
Scratcher
11 posts
making a 2 player game
How do you make one player move at the same time as another player?
- Pa3kZajc
-
Scratcher
1 post
making a 2 player game
Hy guys,
I have a problem and I know to someone will help me.
I made 2 player strategy game, but i dont know how to make if 2 warriors touches they disaper!
I try so much things and…
So pls if someone knows pls tell me!
Patrik
I have a problem and I know to someone will help me.
I made 2 player strategy game, but i dont know how to make if 2 warriors touches they disaper!
I try so much things and…
So pls if someone knows pls tell me!
Patrik
- marcelzietek2006
-
Scratcher
500+ posts
making a 2 player game
Hy guys,Please do not necropost
I have a problem and I know to someone will help me.
I made 2 player strategy game, but i dont know how to make if 2 warriors touches they disaper!
I try so much things and…
So pls if someone knows pls tell me!
Patrik
- marcelzietek2006
-
Scratcher
500+ posts
making a 2 player game
i have made a 2 player side scroller and when ever both players move one player has to keep spaming the over key to move, how can i make it so they can just hold the over key and both player will move smoothly.
You can do something like
Sprite 1
when green flag clicked
forever
if <key [d] pressed?> then
move (5) steps
end
if <key [a] pressed?> then
move (-5) steps
end
end
Sprite 2
when green flag clicked
forever
if <key [right arrow key] pressed?> then
move (5) steps
end
if <key [left arrow key] pressed?> then
move (-da5) steps
end
end
- ScratchNoobBruh
-
New Scratcher
1 post
making a 2 player game
So how do u make a tank move in a way a tank should move?
Like how are u supposed to make it turn in circles smoothly
.
Like how are u supposed to make it turn in circles smoothly
.
- deck26
-
Scratcher
1000+ posts
making a 2 player game
So how do u make a tank move in a way a tank should move?Please create your own new topic. Try searching for ‘tank’ and see how others have done this.
Like how are u supposed to make it turn in circles smoothly
.
- Exsnailabur
-
Scratcher
38 posts
making a 2 player game
How do you make one player move at the same time as another player?you make so two sprites have the same script, if you take this script and apply it to both sprites, they will move at the same time
Last edited by Exsnailabur (Feb. 23, 2020 23:38:35)
- chowc13
-
Scratcher
11 posts
making a 2 player game
that was like WAY back. I know how to do itHow do you make one player move at the same time as another player?you make so two sprites have the same script, if you take this script and apply it to both sprites, they will move at the same time
- krishanth_ganess
-
New Scratcher
2 posts
making a 2 player game
You can do something like
Sprite 1
when
clicked
forever
if
key
d
pressed?
then
move
5
steps
if
key
a
pressed?
then
move
-5
steps
Sprite 2
Sprite 1
when
clicked
forever
if
key
d
pressed?
then
move
5
steps
if
key
a
pressed?
then
move
-5
steps
Sprite 2
- Superman234567890
-
Scratcher
4 posts
making a 2 player game
You can do something likeI need help to create two player game
Sprite 1
when
clicked
forever
if
key
d
pressed?
then
move
5
steps
if
key
a
pressed?
then
move
-5
steps
Sprite 2
- 2895045mno
-
Scratcher
29 posts
making a 2 player game
idk maybe
when green flag clicked
when green flag clicked
- 2895045mno
-
Scratcher
29 posts
making a 2 player game
idk
when green flag clicked
forever
broadcast [(☁ score) v]
end
- Discussion Forums
- » Help with Scripts
-
» making a 2 player game