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

#1 2012-06-27 22:27:34

legominifig8
Scratcher
Registered: 2011-02-21
Posts: 11

How to fix a two player problem that may be common

I understand that making simple two player games with added scripts such as gravity, velocity, etc. But this will show you how to fix a problem that may be a problem to many two-player developers.  Let's say that your keybindings are WASD keys for P2, and arrow keys for P1.  Add the scripts in this order:
[scratchblocks]
when gf clicked
if <(right arrow key pressed)> and <(D key pressed)>
change x by [YOUR_NUMBER]  <-- example "10"
Edit:
Put this script on both player one and player two sprites
  So I'm sure this works and go have fun!

Last edited by legominifig8 (2012-07-01 17:05:59)


I do some C ++, and TorqueScript, not too much though, but I'm good with the engine.

Offline

 

#2 2012-06-27 23:24:21

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: How to fix a two player problem that may be common

You don't seem to be seeking help so probably should move this to "Requests" because you are offering help to others.

Also, what does the script even do?


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-06-28 00:57:15

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: How to fix a two player problem that may be common

What problem does this script fix...?


Hai.

Offline

 

#4 2012-06-28 01:04:04

SOScratch
Scratcher
Registered: 2010-02-01
Posts: 100+

Re: How to fix a two player problem that may be common

Wes64 wrote:

You don't seem to be seeking help so probably should move this to "Requests" because you are offering help to others.

Also, what does the script even do?

This forum is called the "Help with Scripts" forum. You do not necessarily have to ask for help. You can always just post something helpful to other developers.
I have done that a few times.

And I agree, what is this script built to do?
I am guessing something that has to do with 2-player on a platformer.


-SOScratch
Scratch On!

Offline

 

#5 2012-06-28 01:09:21

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: How to fix a two player problem that may be common

SOScratch wrote:

This forum is called the "Help with Scripts" forum. You do not necessarily have to ask for help. You can always just post something helpful to other developers.
I have done that a few times.

On the forums homepage it says...

Help with Scripts
Need help with your Scratch project? Ask here!

Requests
Looking for something? Want to offer your skills to others?

I think it fits requests much better.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#6 2012-07-01 17:05:18

legominifig8
Scratcher
Registered: 2011-02-21
Posts: 11

Re: How to fix a two player problem that may be common

Do you know how when you make a two player game, if both people control at the same time, one of them does not move? This fixes that.


I do some C ++, and TorqueScript, not too much though, but I'm good with the engine.

Offline

 

Board footer