None of the code is tested:
b3vad wrote:1- image oprations:
when I tried to flip one of characters on the screen I found out that there is a whole creating a new image process for that.
can we get something like:
Code: Select all
show MyChar with im.Flip(vertical=False, horizontal=True)
and same thing for all of other oprations?
Try:
Code: Select all
show expression im.Flip(ImageReference(MyChar), vertical=False, horizontal=True)
Otherwise, read up on renpy.show() function, that will work for sure.
b3vad wrote:Before I start I should mention that it's my first day and post here and my second day of using Ren'Py so if I asked for something that is already available forgive me I still lack experience.
since I stated using Ren'Py I loved how it makes everything easy to do but there are some things that are done the hard way so I decided to come and ask for a more simple way to do them (if there is not any).
2- drag screen elements while in developer mode.
I was trying to find xpos and ypos for a little image on the screen in developer mode and said to myself: how easier this will be if i can just drag it to its position and see its x,y position in a corner of screen?
Or you could display current coordinates of the mouse pointer in development mode like all sane people do (renpy.get_mouse_pos() or pygame.mouse.get_pos())
b3vad wrote:3- independent animations (and image bundles)
can we just make animations and then apply them to a bunch of pictures? like?
Code: Select all
bunch=imageBundle(img1,img2,img3,img4)
ani = Animation(0.25,0.5, 0.25,2)
show bunch with ani
image bundles can be used in ui.imagebutton too
Search:
anim.TransitionAnimation()
also, I wrote python code to automatically animate from folders, assuming that all frames require the same pause between them:
Code: Select all
init python:
import os
gamedir = os.path.normpath(config.gamedir)
def animate(path, delay=0.25, function=None, transition=None):
# Build a list of all images:
dirs = os.listdir("".join([gamedir, path]))
images = list("".join([path[1:], "/", fn]) for fn in dirs if fn.endswith(('.png', '.gif')))
# Build a list of arguments
args = list()
for image in images:
args.extend([image, delay, transition])
return anim.TransitionAnimation(*args)
for dir in os.listdir("".join([gamedir, '/animations/'])):
if " " in dir:
renpy.image(dir.split(" ")[0], animate("".join(["/animations/", dir]), float(dir.split(" ")[1])))
else:
renpy.image(dir, animate("".join(["/animations/", dir])))
Default pause is 0.25 but if you want to change that, name your folder:
my_cool_animation 0.1
if you want to change that. Animation will be registered with Ren'Py under "my_cool_animation". There are some limitations to this and make sure the folder is called animations OR change that to whatever you please in code. Also make sure that images inside the folder could be logically sorted.
b3vad wrote:4- it will be awesome if we can use animations for ui.imagebutton . please ^_^
What's stopping you?
b3vad wrote:5- independent ui elements (I'm not sure if this one is already available. I didn't find anything) like text and image buttons that are on the screen while characters speak and if clicked do something.
Modify "say" screen in screens.rpy.
b3vad wrote:6- HotSpots
my experience with imagemap was awful can we have hotspots without any imagemap system please?
I am allergic to hotspots and believe that buttons are vastly superior (but it might be because I royally suck with graphics).