- Sep 30, 2018
- 102
- 70
Hey,
i'm always here. Ok, i will try to do simple. The idea is simple : i can play video and i can choose Fullscreen or Windowed Movie.
If i choose windowed movie, I want to be able to switch to full screen with a key ("f" for example).
I've read what i could but nothing clear for me without a screen (renpy org and of course The Great ).
I think my problem is to not use screen or some displayable control but my goal is to do the more simple when it's possible. Ok, my "stupid" code now, clearer for you, i hope.
Of course, i obtain an error which is :
i'm always here. Ok, i will try to do simple. The idea is simple : i can play video and i can choose Fullscreen or Windowed Movie.
If i choose windowed movie, I want to be able to switch to full screen with a key ("f" for example).
I've read what i could but nothing clear for me without a screen (renpy org and of course The Great ).
I think my problem is to not use screen or some displayable control but my goal is to do the more simple when it's possible. Ok, my "stupid" code now, clearer for you, i hope.
Python:
.../...
default isFullScreenable = False
label start:
#--------------------------------------------------------------------------------------------------
# PLAYING MOVIE FULLSCREEN : STOP BY PLAYER ACTION - CLICK, KEYBOARD...
#--------------------------------------------------------------------------------------------------
menu chooseWhatYouWant:
"Play Movie Fullscreen":
call playMovie(True)
scene expression "[PICTURES_LOCATIONS]home_day.png"
speaker "Movie FullScreen Finished"
"Play Movie resizing":
$ isFullScreenable = True
call playMovie()
speaker "Movie Resizing Finished"
.../...
label playMovie(isFullScreen = False):
if isFullScreen:
call playFullScreen()
"Movie Fullscreen interrupted by Player"
else:
call playWindowMovie()
"Playing through once, and stopping at the (faked) final frame"
if isFullScreenable:
$ isFullScreenable = False
key "f" action call playFullScreen()
Variable [isFullScreenable] is there to deactivate the F key when i'm out of my function.File "game/code/functions/moviePlayer.rpy", line 47: end of line expected.
key "f" action Call(playFullScreen)
Last edited: