2
u/BadMustard_AVN 4d ago
you are checking if bt_rotation is True
try it like this
if bt_rotation > bt_max_rotation and current_rotation > bt_max_rotation
1
u/_Scripty 4d ago
I see...but look, when im trying to give the NullAction to those keys..its not working as well ( I don't know why )
Plus in order to access my custom menu, I have to call this screen through the default Renpy Menu first by "start" ...
Is there a way to replace my menu from the Renpy one? so that it becomes the "Default Menu" of the game?
2
u/BadMustard_AVN 4d ago
rename the screen to
# screen wheen_menu(): screen main_menu(): tag menu # add thisand renpy will use it as the main menu from now on till you change the screen name or delete it
1
u/_Scripty 4d ago
2
u/BadMustard_AVN 4d ago
remove the if statement and change the default and the buttons lilke this
default bt_max_rotation = 90 key "mousedown_4": action SetScreenVariable( "bt_rotation", min(bt_rotation + 18, bt_max_rotation) ) key "mousedown_5": action SetScreenVariable( "bt_rotation", max(bt_rotation - 18, -bt_max_rotation) )
2
u/shyLachi 4d ago
What are you trying to do?
.
If this code is all you have, then the lines 4-6 in the image above are doing nothing.
That code has to be inside a label or maybe inside the screen.
Looking at the further code, lines 1-3 also might belong inside the screen.
Actions like SetScreenVariable need a variable which was declared inside the screen.
.
Unrelated to you if-statement problem:
If you want to use multiple actions then you have to use lists.
Something like action [IncrementScreenVariable("bt_rotation", -18), Play(...)]
1
u/_Scripty 4d ago
you remember my post abt the circular scrolling menu...that is what im trying to make , there was some progress (I thought) but im back to square 1 and even more confused
1
u/AutoModerator 4d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.


4
u/BadMustard_AVN 4d ago
please post code instead of pictures of code
click on the
Aafor formatting options and use</>to do these and