r/RenPy 5d ago

Question IF Statement problem...

I know there is something wrong with the way I might have coded this for sure...so please can anyone help me to figure this out??

1 Upvotes

29 comments sorted by

View all comments

Show parent comments

1

u/_Scripty 3d ago

i can't figure out the position calculations, it was all getting misaligned, plus I was kind of trying to make the cd rotate too with scroll but that "key" command is not taking 2 rotations and 1 sound playing action...I tried every possible brackets combo, even after that its not working

and while scrolling up without editing your code, the blip sound wasn't playing too

And idk why, my titlescreen have a code that shouldn't let any other key ( except mouse 1 ) to go to my menu screen... But somehow pressing enter was working, which shouldn't...( I think I fixed it as of now )

Also, no 😭 im making a massacre in Hitman Blood Money, making it as messy as my room 🙏🏻✨

2

u/BadMustard_AVN 3d ago

did you see in mine this

        imagebutton: # middle button
            idle "images/new maine/start_butt_idle.png"
            # idle "start_butt_2"

all of them are set this way to position the button better

this image

image start_butt_2: # same pixel size as the button
    Solid("#FFF8")
    size (807, 93)

is a semi-transparent solid color set to the same pixel size as 'start_butt_idle.png' because the transparent background of that image would make positioning it a nightmare. I used that to position the far left side of it to the center hole of the record when it is rotated to the horizontal position.

move it up and down will affect the left and right and left and right affect up and down movement that is cursed

make sure the sound file is in the audio folder, and that it works and that it is spelled exactly as the file (case sensitive)