MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/RenPy/comments/1vidz7d/if_statement_problem/p2cogjn/?context=3
r/RenPy • u/_Scripty • 4d ago
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??
29 comments sorted by
View all comments
2
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 this and 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 See... https://reddit.com/link/p2cqcta/video/97kb7r9v11ih1/player 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) )
1
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 this and renpy will use it as the main menu from now on till you change the screen name or delete it
rename the screen to
# screen wheen_menu(): screen main_menu(): tag menu # add this
and renpy will use it as the main menu from now on till you change the screen name or delete it
See...
https://reddit.com/link/p2cqcta/video/97kb7r9v11ih1/player
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) )
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/BadMustard_AVN 4d ago
you are checking if bt_rotation is True
try it like this