Discuss Scratch

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
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
marcelzietek2006
Scratcher
500+ posts

making a 2 player game

Pa3kZajc wrote:

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
Please do not necropost
marcelzietek2006
Scratcher
500+ posts

making a 2 player game

falconer16 wrote:

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
marcelzietek2006
Scratcher
500+ posts

making a 2 player game

Oh nvm
noticed the post is from 2015 xD
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
.
chowc13
Scratcher
11 posts

making a 2 player game

let me see the code
deck26
Scratcher
1000+ posts

making a 2 player game

ScratchNoobBruh wrote:

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
.
Please create your own new topic. Try searching for ‘tank’ and see how others have done this.
Exsnailabur
Scratcher
38 posts

making a 2 player game

chowc13 wrote:

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

Exsnailabur wrote:

chowc13 wrote:

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
that was like WAY back. I know how to do it
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
Superman234567890
Scratcher
4 posts

making a 2 player game

krishanth_ganess wrote:

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
I need help to create two player game
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

Powered by DjangoBB