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?