Help with objects displayables

exer059

New Member
Jul 16, 2017
9
1
Hii,

I'm new to renpy and I've searched the documentation, I need help to create a wheel (object) and it's rotated, but I'm not able to make it work. if he is so kind, he will be grateful.
The point of the minigame is align or line up the wheels with the bg.
This is my code:
You don't have permission to view the spoiler content. Log in or register now.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,369
15,286
[...] but I'm not able to make it work. [...]

Code:
        vbox:
            add rueda1
            xalign 0.5
            yalign 0.5
             rotate 0 + rotacion
You're wrongly using . It's not a property of a screen statement (way you use it), but a statement of the . So, you need to , then the image in your screen while applying it the said transform.
Something like :
Code:
transform wheelRotation:
    rotate 0
    linear 10 rotate 360
    repeat

screen wheel:
    add rueda1 at wheelRotation
    xalign 0.5
    yalign 0.5


Would you've read the page before linking it, that you also would have understood why it's absolutely not the right answer.
 
  • Like
Reactions: exer059

exer059

New Member
Jul 16, 2017
9
1
You're wrongly using . It's not a property of a screen statement (way you use it), but a statement of the . So, you need to , then the image in your screen while applying it the said transform.
Something like :
Code:
transform wheelRotation:
    rotate 0
    linear 10 rotate 360
    repeat

screen wheel:
    add rueda1 at wheelRotation
    xalign 0.5
    yalign 0.5




Would you've read the page before linking it, that you also would have understood why it's absolutely not the right answer.
Thank you very much! You help me a lot