Edgescrolling
Posted: Sun Sep 02, 2018 12:31 pm
Hi, I'm having a bit of trouble getting edgescrolling to work. I've been reading this part of the documentation https://www.renpy.org/doc/html/screens.html#viewport . But I feel like I'm missing something.
I'm trying to make the game's main menu image in to an edgescroll thingy. Here's the code I'm working with
(randmenui is defined before)
If I run this code, I get to the main menu all fine. Then, as soon as I move my mouse, it gives me "TypeError: 'float' object is not callable"
If I remove the third number from edgescroll, the ", 1.0" it doesn't crash, and works fine. But of course, without the third number, it kind of feels and looks dumb.
Any of you gotten the third element of edgescroll working?
I'm trying to make the game's main menu image in to an edgescroll thingy. Here's the code I'm working with
Code: Select all
screen main_menu():
## This ensures that any other menu screen is replaced.
tag menu
style_prefix "main_menu"
viewport:
edgescroll (400, 500, 1.0)
add randmenui
If I run this code, I get to the main menu all fine. Then, as soon as I move my mouse, it gives me "TypeError: 'float' object is not callable"
If I remove the third number from edgescroll, the ", 1.0" it doesn't crash, and works fine. But of course, without the third number, it kind of feels and looks dumb.
Any of you gotten the third element of edgescroll working?