Monika-After-Story / MonikaModDev

DDLC fan mod to extend Monika
http://www.monikaafterstory.com/
Other
1.18k stars 685 forks source link

Interactive button almost done... #7923

Closed Lu1508 closed 3 years ago

Lu1508 commented 3 years ago

Like the tittle says, I almost finish the submod about "Interactive button" (#7701)

I just need to know how to change the button position when Monika is or not leaning

I tried a lot of ways (ones gave me error and other stayed in the same position), but I still can't figure it out

Can someone help me, please? I promise this is the last time I bother you (._.")

screen nosedot():
    zorder 200
    if store.mas_calendar.enabled and not store._menu:
        imagebutton:
            idle ("mod_assets/buttons/face/dot.png")
            action Function(renpy.call, "monika_boop")
            xpos "buttposx"
            ypos "buttposy"

init python:
    def buttposy():
        MASPoseMap(
            default=244,
            l_default=290
            )

    def buttposx():
        MASPoseMap(
            default=624,
            l_default=672
            )
Booplicate commented 3 years ago

There's no simple way to detect leaning because Monika's sprite is a complex composite image.

Also, you opened a few issues, but you could keep it all in 1 as you're working on the same thing.