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

#1 2010-07-13 11:36:07

cfunke
Scratcher
Registered: 2009-07-20
Posts: 8

Trying to make a 4 Square game

I'm teaching a class on making games in Scratch right now and I have a student trying to make a 4 square game (you know with the playground ball at recess) and she's stumped me.

She wants to make it so that if a player passes the ball and it goes out of bounds then that player is out of the game.  How do we make it so the ball (a sprite) affects the last sprite to touch it when it goes out of bounds? We've got the boundaries set up and the sprite movement but I can't figure out how to make it identify the last sprite that touched it.

Any help would be greatly appreciated.

Offline

 

#2 2010-07-13 12:03:05

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Trying to make a 4 Square game

4 square is so much fun! But anyway...

http://img97.imageshack.us/img97/9230/4square.gif


Does that help?

Last edited by scmb1 (2010-07-13 12:05:17)


http://i48.tinypic.com/2z5pqad.png

Offline

 

#3 2010-07-14 11:11:37

cfunke
Scratcher
Registered: 2009-07-20
Posts: 8

Re: Trying to make a 4 Square game

Extremely helpful!  Thank you very much.  She ended up having to retool how her game worked as a result but that's a good thing because I think she was being a little too ambitious and overestimated the players ability to control 4 players at a time.

Offline

 

#4 2010-07-14 12:02:00

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Trying to make a 4 Square game

Happens to every programmer sooner or later   big_smile


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

Board footer