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

#1 2011-10-07 14:55:29

TheArgentina10
New Scratcher
Registered: 2011-09-27
Posts: 4

Motion controls

Im trying to make a soccer game with multiple ppl on each team but im having some trouble... all the sprites move at the same time when i try to only control 1. i want to be able to switch between sprites to i can change characters to make the game more intense

Offline

 

#2 2011-10-07 16:06:06

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Motion controls

-_-

Don’t give all of them the script to move.

Try the “pick random” block for time intervals.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#3 2011-10-07 19:38:32

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Motion controls

Lol.  This would require variable usage!  wink

If 1 pressed
set var to 1
if 2 pressed
set var to 2

__
etc etc
__
Then:
player sprite 1
if var = 1
move
else
dont move
player sprite 2
if var = 2
move
else
dont move

etc etc
(It's in short hand)


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#4 2011-10-08 00:48:25

SheppardProductions
Scratcher
Registered: 2011-08-14
Posts: 100+

Re: Motion controls

You could use the script above, or make a sprite like a blue circle. When 1 clicked go to sprite1, then use the if touching block for the movement script. Or you could use variables AND a sprite for this, when space pressed set variable to pick random 1 to 11. 1 being sprite1, 2 being sprite2, etc. This should also work with ssss's suggestion

Offline

 

#5 2011-10-08 08:35:49

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Motion controls

This should be in All About Scratch.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#6 2011-10-08 18:09:50

SheppardProductions
Scratcher
Registered: 2011-08-14
Posts: 100+

Re: Motion controls

MoreGamesNow wrote:

This should be in All About Scratch.

It could be considered advanced

Offline

 

#7 2011-10-08 18:25:55

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Motion controls

SheppardProductions wrote:

MoreGamesNow wrote:

This should be in All About Scratch.

It could be considered advanced

No.

Advanced Topics are topics that deal with Scratch as a programming language.

Only VERY few topics that could be in AAS, are in AT. But that’s because their VERY advanced.

Unlike this.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#8 2011-10-08 19:15:29

SheppardProductions
Scratcher
Registered: 2011-08-14
Posts: 100+

Re: Motion controls

henley wrote:

SheppardProductions wrote:

MoreGamesNow wrote:

This should be in All About Scratch.

It could be considered advanced

No.

Advanced Topics are topics that deal with Scratch as a programming language.

Only VERY few topics that could be in AAS, are in AT. But that’s because their VERY advanced.

Unlike this.

If it bugs you so much, report it so someone can get it moved.

Offline

 

#9 2011-10-15 12:40:15

TheArgentina10
New Scratcher
Registered: 2011-09-27
Posts: 4

Re: Motion controls

Thanks, I think the variable idea would work. Im also running into another problem, im having trouble creating a PK shootout and its taking a lot of time. any suggestions?

Offline

 

Board footer