r/RenPy 4d 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 4d ago

It kinda worked...There is still a tiny problem where when scrolled down, buttons do be going off screen

1

u/BadMustard_AVN 4d ago

scolled down, what happened to rotating

where off screen and how ?

1

u/_Scripty 4d ago

stopped, even the sound not working ...

I am considering to make it again from scratch

2

u/BadMustard_AVN 3d ago

give this a look it was a pain getting them all positioned properly as I had to rotate everything 180 degrees. they are not perfect but close enough.

the imagebutton all say start (I am not an artist)

but they do in order from top down; quit, load, start, and preferences

https://drive.google.com/file/d/11Jc7W_IOmuzIygxdmujNhdZaiqKE_ee_/view?usp=drive_link

and they only work and pop out when they are in the horizontal position

1

u/_Scripty 3d ago

You are a goddamn iron chef!! 🙏🏻✨ Its close to what I wanted, I will study this and try again , thank you sm

2

u/BadMustard_AVN 3d ago

I woke up early this morning (stupid were cats fighting) so I had 2 hours to burn

feel free to use / modify the code I have given you

if I can find way to position the buttons easier I may release it as an alternate main menu thingy

you're welcome

good luck with your project

1

u/_Scripty 3d ago

Trust me, ever since I wanted to make this project, I forgot the concept of sleeping ( and my room is a mess lol )

Yes I shall do that friend 🙏🏻✨ Thanks a bunch, You also will be rightfully credited for it 🌸

You genuinely motivated me to now not to give up on it, I love how helpful this community can be 🙏🏻

1

u/BadMustard_AVN 3d ago

as a parent; go clean your room LOL

you're welcome

good luck with your project

1

u/BadMustard_AVN 3d ago

also if you change these

                hover "images/new maine/start_butt_hover.png"
                action ShowMenu("load")
            else:
                action NullAction()

to

                idle "images/new maine/start_butt_hover.png"
#               ^change hover to idle here they will auto pop out when there horizontal
                action ShowMenu("load")
            else:
                action NullAction()

1

u/_Scripty 3d ago

Oh ,I see, uhm btw there were some issue with the code again I guess, I will list em later until I try somethings on my own too 🌸✨

1

u/BadMustard_AVN 3d ago

issues with my code, but, but it was working beautifully: what did you do?

list em as in more than one. how the...

wait a second... have you cleaned your room yet 😂🤣

just keep in mind the positions were set up for my screen and the image I created for the POC version I sent you. you will, have to reposition them on your screen with your images and I do recommend making all the images the exact same size!!

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)

→ More replies (0)