It worked! Thanks.
My mistake was to hide 'image1' before declaring "temp". So when using "renpy.display.core.displayable_by_tag()", you have to enter a displayed image.
Search found 7 matches
- Tue May 17, 2016 1:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Get image position in python?
- Replies: 11
- Views: 3831
- Tue May 17, 2016 12:49 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Get image position in python?
- Replies: 11
- Views: 3831
Re: Get image position in python?
I tried this : $ temp = renpy.display.core.displayable_by_tag("master", "image1") # Layer: 'master', Tag: 'image1' $ renpy.show('image2', at_list=[Transform(xpos=temp.xpos, ypos=temp.ypos)] But I got the error : AttributeError: 'NoneType' object has no attribute 'xpos' Are we mis...
- Tue May 17, 2016 11:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Get image position in python?
- Replies: 11
- Views: 3831
Re: Get image position in python?
Under what conditions? I though if you just showed a new image with the same tag transform properties like position would be carried over? Or not? :D LoL I haven't used normal VN stuff for so long I can barely remember the basics :( Edit: Yeap, I was right: image meow = Solid("F00", xysiz...
- Sun May 15, 2016 5:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Get image position in python?
- Replies: 11
- Views: 3831
Re: Get image position in python?
I want to show an image exactly on the same position than an other (while hiding the other image).
- Sun May 15, 2016 4:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Get image position in python?
- Replies: 11
- Views: 3831
[SOLVED]Get image position in python?
Hi,
I couldn't find a way to get or set the position of an image in python, since we call them (the images) with their names (strings).
I want to achieve something like this :
Do you think it is possible?
I couldn't find a way to get or set the position of an image in python, since we call them (the images) with their names (strings).
I want to achieve something like this :
Code: Select all
$ Image1.position = Image2.position
- Sun May 15, 2016 4:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: translate sprites in python
- Replies: 2
- Views: 291
- Thu May 12, 2016 7:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: translate sprites in python
- Replies: 2
- Views: 291
translate sprites in python
Hi dear Ren'py users, I'm trying to move multiple sprites at the same time using a python function. AllPlans = [] class Plan: def __init__(self, list, positions): self.images = list self.pos = positions AllPlans.append(self) def HideAll(self): for image in self.images: renpy.hide(image) def ShowAll(...