Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Tue May 21, 2013 12:55 pm

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Café
PostPosted: Thu Jul 15, 2010 7:54 pm 
Miko-Class Veteran
User avatar

Joined: Tue Jul 24, 2007 12:58 pm
Posts: 526
This is just a minigame, really, but I thought it might be interesting. It's unobfuscated, and anyone can use it as they like (code and pictures, though I think it's doubtful many people will want to use my MSPaint pictures.)

Anyway! This is, like I said, a minigame based on a café. You play a stick figure whose job it is to deliver food to the hungry customers! It's mostly a memorisation game. I don't know, you could use it in a minigame if the character in your VN had a part time job or something. You'd probably want to make better art first though. Let me know if it doesn't work or anything.

There's probably better ways to do this, but I'm not really a programmer. I just find workarounds for every problem I hit until stuff works. :D

Attachment:
cafe-win32.zip [3.82 MiB]
Downloaded 156 times

Attachment:
cafe-mac.zip [6.88 MiB]
Downloaded 20 times

Attachment:
cafe-linux-x86.tar.bz2 [3.31 MiB]
Downloaded 15 times


Top
 Profile Send private message  
 
 Post subject: Re: Café
PostPosted: Fri Jul 16, 2010 12:45 pm 
Regular
User avatar

Joined: Thu May 27, 2010 7:41 pm
Posts: 179
haha u gotta remember fast at beginng after that u just have to keep eyes on the customers...cute game


Top
 Profile Send private message  
 
 Post subject: Re: Café
PostPosted: Fri Jul 16, 2010 5:22 pm 
Regular
User avatar

Joined: Fri Jul 09, 2010 10:55 am
Posts: 46
Location: Midwest USA
Projects: Unnamed Stalker vs Mystery Game! :D
Maybe I couldn't figure it out.... but I went through the chef's dialogue, then for like a half second I saw something above their heads, and the rest of the time I just walked back and forth and the customers said "Where's my dinner" .... I couldn't get the chef to talk to me. o.O;;;

_________________
I'm working on my first visual novel! Boy stalks girl. Girl offers to date boy if boy solves puzzle. Game commences! Click here to encourage meee -> Hooray! Attention!


Top
 Profile Send private message  
 
 Post subject: Re: Café
PostPosted: Fri Jul 16, 2010 5:59 pm 
Miko-Class Veteran
User avatar

Joined: Tue Jul 24, 2007 12:58 pm
Posts: 526
Hm, half a second? Your computer must run a lot faster than mine! I guess that's what I get for basing the speed of things on the processing power. You can fiddle with the numbers in the script to get the images to stay longer; I think the number 40 is the one that needs increasing for that. Or you could add a proper timer. The chef should speak to you if you hit the far right hand of the screen... Hm, I can't think of a reason why he wouldn't. Unless possibly changing the screen resolution would stop him talking? I shouldn't have thought so, though...


Top
 Profile Send private message  
 
 Post subject: Re: Café
PostPosted: Sat Jul 17, 2010 6:12 am 
Newbie

Joined: Fri Mar 19, 2010 8:15 pm
Posts: 23
In my case (downloaded the linux version) the initial order presentation is way too fast. Afterwards it's ok, though.

Can't one use a timer function, instead of something based on processing speed?


Top
 Profile Send private message  
 
 Post subject: Re: Café
PostPosted: Sat Jul 17, 2010 7:06 am 
Miko-Class Veteran

Joined: Tue Jun 22, 2010 12:54 am
Posts: 572
Location: Zion Island, Solario
Completed: Christmas
Projects: [R-R]Christmas, (Un-named VN), I'M NOT A KILLER
And there was one more error in the Windows one, at least there was for me. Sometimes you have to hit enter five-six times for the message box to disappear.

CandyStar wrote:
Maybe I couldn't figure it out.... but I went through the chef's dialogue, then for like a half second I saw something above their heads, and the rest of the time I just walked back and forth and the customers said "Where's my dinner" .... I couldn't get the chef to talk to me. o.O;;;


It happened to me too. Just go and hit the chef three or four times and he will start talking.

_________________
"You can't wait for inspiration. You have to go after it with a club." --Jack London
“One must be careful with words. Words turn probabilities into facts and by sheer force of definition translate tendencies into habits.” ― Fay Weldon
"A writer who waits for ideal conditions under which to work will die without putting a word on paper." -- E.B. WHITE
"I love writing but hate starting. The page is awfully white and it says, "You may have fooled some of the people some of the time but those days are over, giftless. I'm not your agent and I'm not your mommy. I'm a white piece of paper, you wanna dance with me?" And I really, really don't." -- Aaron Sorkin

My Completed Games: Christmas


Top
 Profile Send private message  
 
 Post subject: Re: Café
PostPosted: Sat Jul 17, 2010 4:26 pm 
Eileen-Class Veteran
User avatar

Joined: Sat Jan 26, 2008 5:58 pm
Posts: 1697
Location: Jacob Whitemoore Academy
Completed: http://www.ayusakata.com/vn.html
Projects: Every Sunrise, Oneiro, Backstage Pass
Organization: sakevisual
This is actually a pretty clever premise. It could use some polishing in terms of gameplay, but I like it.

Do you plan to do any more work on this?

_________________

Image Image Image


Top
 Profile Send private message  
 
 Post subject: Re: Café
PostPosted: Sun Jul 18, 2010 11:53 am 
Miko-Class Veteran
User avatar

Joined: Tue Jul 24, 2007 12:58 pm
Posts: 526
Well, maybe. I kind of threw it together after seeing a question in the Game Makers section.

The initial showing is too fast but later ones are okay? Hm. Possibly the reshowing of the man at different positions when he's moving slows it down enough that the pictures stay for a decent amount of time. If you change script.rpy inside the game folder in a text editor so that the
Code:
label start:
    $ leftpressed = False
    $ spacepressed = False
    $ rightpressed = False

at the start reads
Code:
label start:
    $ leftpressed = False
    $ spacepressed = False
    $ rightpressed = True

do the initial pictures stay longer? (It should now start off with the person moving to the right instead of being stationary).
Failing that, you can change the $ distance = 0 line to $ distance = 650, which should start off with you talking to the chef (and the pictures can't vanish whilst you're talking to him).

As for why the chef wouldn't respond first time, I have no idea. The distance variable starts at 0. On a single run through the loop, it checks to see if you're pressed right; if you have, distance is increased by 10 (provided it's less than 650). It then checks to see if distance == 650 and you're not carrying anything; if so, you talk to the chef. The the loop repeats. (It checks a few more things too.) If it's possible to talk to the chef after a few tries it can't be a problem with 650 being unobtainable; so I don't know why it wouldn't talk to the chef any other time. It should be impossible not to talk to him if you're as far right as you can get and not carrying anything. Possibly it runs through the loop so fast it's skipping code? I don't know. You could see if increasing the number in the line 610 $ renpy.pause(0.000001) (or some number of 0, I forget) to 0.1 or 0.01 helps; that should slow down each iteration of the loop anyway, which would help with the images not staying long enough problem.

There was a problem with the message box disappearing then immediately coming back in earlier versions but I thought I fixed that... Oh, unless you press space again after you've started talking to them. Is that what happened? Or possibly holding space just a little too long would do it... Ah, once more, if your processing speed is faster than mine, you could flash past the thing stopping space being picked up as held so fast that you don't have time to let go of space. Hm, maybe I should have foreseen that. I'll post a fix...

Okay, I think the script.rpy file below should fix the not disappearing speech box problem, and hopefully the too fast initial pictures problem. Just replace the other script file in the game subfolder. (Will that work?)

Attachment:
script.rpy [27.51 KiB]
Downloaded 12 times


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group