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 7:18 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun May 20, 2012 1:22 pm 
Regular
User avatar

Joined: Sun Jun 15, 2008 5:11 pm
Posts: 52
So I found this: http://www.renpy.org/wiki/renpy/doc/cookbook/A_frame_for_RPGs

I want to re-create that using screen language however how would that look?


Top
 Profile Send private message  
 
PostPosted: Sun May 20, 2012 8:09 pm 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1112
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
( ´∀`)つ http://nyaatrap.blog.fc2.com/blog-entry-4.html
It's not the same but very similar.

_________________


Top
 Profile Send private message  
 
PostPosted: Mon May 21, 2012 4:27 am 
Miko-Class Veteran
User avatar

Joined: Tue Jul 24, 2007 12:58 pm
Posts: 526
And adding a bar is a simple case of... well, here's an example:

Code:
    screen hpbars:
        frame:
            xmaximum 450
            xalign 1.0
            yalign 0.72
            vbox:
                hbox:
                    vbox:
                        text currentplayer.name
                        hbox:
                            text "HP"
                            bar value currentplayer.currenthp range currentplayer.maxhp
                        hbox:
                            text "SP"
                            bar value currentplayer.currentsp range currentplayer.maxsp
                    vbox:
                        hbox:
                            text "Lv. "
                            text "[currentplayer.level]"
                        text "[currentplayer.currenthp]/[currentplayer.maxhp]"
                        text "[currentplayer.currentsp]/[currentplayer.maxsp]"


You can fiddle around with where you want to put it on the screen, and which exact vboxes and hboxes and frames and so on you're using, too.


Top
 Profile Send private message  
 
PostPosted: Fri May 25, 2012 6:45 pm 
Regular
User avatar

Joined: Sun Jun 15, 2008 5:11 pm
Posts: 52
Thank you so much nyaatrap and Showsni!!


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot]


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