UI Bar that slides in reverse?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
LightSPS
Newbie
Posts: 20
Joined: Fri Sep 14, 2012 2:21 pm
Projects: Glass Road:Curse of Vindauga
Organization: Square Pulse Studios
Location: USA
Contact:

UI Bar that slides in reverse?

#1 Post by LightSPS » Wed Jan 16, 2013 7:39 pm

I'm working on an rpg and I need two health bars. The one on the left slides normally, but the one on the right needs to slide in the opposite direction. Is there a property of ui bars that does this that I'm not aware of. (I've read through the documentation, but I can't find anything that lets me do this).

Here's a mock up of what I mean:
Image

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: UI Bar that slides in reverse?

#2 Post by nyaatrap » Wed Jan 16, 2013 8:19 pm

Code: Select all

transform flip:
  xzoom -1
screen:
  bar at flip
It should work

User avatar
Hellboy
Regular
Posts: 86
Joined: Mon Dec 24, 2012 9:37 pm
Location: Heredia. Costa Rica.
Contact:

Re: UI Bar that slides in reverse?

#3 Post by Hellboy » Thu Jan 17, 2013 1:32 am

LightSPS, If you get to make it work, would you share the recipe please? I really wanted that too and could find out how. :shock:
Image
FREE and easy 3D customization, posing, and animation software with pre-made people and environments:
DAZ Studio Pro 4.9

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: UI Bar that slides in reverse?

#4 Post by Alex » Thu Jan 17, 2013 12:39 pm

Add <bar_invert True> parameter to your bar
http://www.renpy.org/doc/html/style.htm ... properties

Post Reply

Who is online

Users browsing this forum: No registered users