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

#1 2012-11-16 20:00:50

Willtz
Scratcher
Registered: 2011-12-19
Posts: 3

Diner Game

I thought of this idea for a fun game, but it seemed really complicated.
My idea is a diner game where customers come into your diner.
They sit down at the dining tables and you must come by them to serve them.
The customers will only stay for 30 seconds without being served.  If too much time passed and the customer didn't get served, he/she will leave.
There are a few different customer costumes, and it is completely random what the next customer will have as their costume.
You must serve an amount of customers before having an amount of customers leave.
If all the dining tables are filled, the customers will stand and wait, but they will leave after 15 seconds of not sitting down.

if <(you can do this)>
please [do it!]

Offline

 

#2 2012-11-17 08:33:48

Tastycakelover
Scratcher
Registered: 2012-09-04
Posts: 16

Re: Diner Game

Wow, I like that idea! I think I may have an idea for some of the complicated scripts, and I'm really good at animating so I could help with the customers.

Waiting Script [customers wait to be served and leave if they are not]:

when gf clicked
hide
set variable [Is Customer One Seated? v] to (0)
wait (1) secs 
show
reset timer
if <touching [Waiter v] >
glide (1) secs to x: (-56) y: (87)
set variable [Is Customer One Seated? v] to (1)
end
if < (Is Customer One Seated?) = (1) > 
reset timer
end
if < < (Is Customer One Seated?) = (1) > and < (timer) < (30) >
think [I am ready to be served] 
end
if < < (Is Customer One Seated?) = (1) > and < (timer) = (30) >
glide (1) secs to [DoorwaySprite v] 
hide
end

Last edited by Tastycakelover (2012-11-17 08:34:15)

Offline

 

Board footer