This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-08-20 03:09:29

technomaniac
Scratcher
Registered: 2011-08-15
Posts: 94

Multiplayer controls?

I  attempted to make a multiplayer game where two stick figures fight. Player one had left right, space. Player two had wasd keys. But the player two attack key, s, did not attack. Player one worked, though.

Offline

 

#2 2011-08-20 04:04:16

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Multiplayer controls?

Could you upload the project so we can take a look at the scripts? ^^


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2011-08-20 11:12:57

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Multiplayer controls?

is it a broadcast? if so, use different ones for each character.

Offline

 

#4 2011-08-20 16:53:21

technomaniac
Scratcher
Registered: 2011-08-15
Posts: 94

Re: Multiplayer controls?

I forgot to save. But I'll make a new game illustrating the problem. It might take a while. No it is not a broadcast, it requires several <when[  ]key pressed> and motion blocks.

Offline

 

#5 2011-08-20 19:25:55

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Multiplayer controls?

technomaniac wrote:

I forgot to save. But I'll make a new game illustrating the problem. It might take a while. No it is not a broadcast, it requires several <when[  ]key pressed> and motion blocks.

I would prefer not using when key pressed. Try forever if key right arrow pressed.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#6 2011-08-21 13:11:47

canopy
Scratcher
Registered: 2011-03-21
Posts: 21

Re: Multiplayer controls?

Thescratch3 wrote:

technomaniac wrote:

I forgot to save. But I'll make a new game illustrating the problem. It might take a while. No it is not a broadcast, it requires several <when[  ]key pressed> and motion blocks.

I would prefer not using when key pressed. Try forever if key right arrow pressed.

Yes, and it would make it to where movement is only accessible after a certain command.


http://29.media.tumblr.com/tumblr_ls2vjiQWk91qe2e32o2_500.gif

Offline

 

#7 2011-08-21 16:12:13

technomaniac
Scratcher
Registered: 2011-08-15
Posts: 94

Re: Multiplayer controls?

Thescratch3 wrote:

technomaniac wrote:

I forgot to save. But I'll make a new game illustrating the problem. It might take a while. No it is not a broadcast, it requires several <when[  ]key pressed> and motion blocks.

I would prefer not using when key pressed. Try forever if key right arrow pressed.

I meant either of them. I used the same scripts for both characters, just different keys. Everything works, except for the Player 2 attacks. I will upload the scripts in a few days time. (I'm busy, and replicating the scripts will take a while, I'm still on it.)

Offline

 

#8 2011-08-22 01:26:18

technomaniac
Scratcher
Registered: 2011-08-15
Posts: 94

Re: Multiplayer controls?

Confuse it! I'm delaying this project, and making a completely different project and topic for it. Who can close topics? If anybody can, please do so.

Offline

 

Board footer