Thanks. I saw this before, but couldn't figure out how to tweak it to work with hotspots. I'll go back to tinkering, though. ^^
Thus far, whenever I try to add a hotspot to that code (whether I take the "has vbox" out or not), I get this:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 30, in script
$renpy.pause()
File "game/script.rpy", line 30, in <module>
$renpy.pause()
File "game/screens.rpy", line 602, in execute
screen tooltip_test:
File "game/screens.rpy", line 610, in execute
frame:
IndexError: list index out of range
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 30, in script
$renpy.pause()
File "C:\Program Files (x86)\RenPy\renpy\ast.py", line 797, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Program Files (x86)\RenPy\renpy\python.py", line 1448, in py_exec_bytecode
exec bytecode in globals, locals
File "game/script.rpy", line 30, in <module>
$renpy.pause()
File "C:\Program Files (x86)\RenPy\renpy\exports.py", line 1148, in pause
rv = renpy.ui.interact(mouse='pause', type='pause', roll_forward=roll_forward)
File "C:\Program Files (x86)\RenPy\renpy\ui.py", line 277, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\Program Files (x86)\RenPy\renpy\display\core.py", line 2285, in interact
repeat, rv = self.interact_core(preloads=preloads, **kwargs)
File "C:\Program Files (x86)\RenPy\renpy\display\core.py", line 2541, in interact_core
root_widget.visit_all(lambda i : i.per_interact())
File "C:\Program Files (x86)\RenPy\renpy\display\core.py", line 343, in visit_all
d.visit_all(callback)
File "C:\Program Files (x86)\RenPy\renpy\display\core.py", line 343, in visit_all
d.visit_all(callback)
File "C:\Program Files (x86)\RenPy\renpy\display\core.py", line 343, in visit_all
d.visit_all(callback)
File "C:\Program Files (x86)\RenPy\renpy\display\screen.py", line 386, in visit_all
callback(self)
File "C:\Program Files (x86)\RenPy\renpy\display\core.py", line 2541, in <lambda>
root_widget.visit_all(lambda i : i.per_interact())
File "C:\Program Files (x86)\RenPy\renpy\display\screen.py", line 396, in per_interact
self.update()
File "C:\Program Files (x86)\RenPy\renpy\display\screen.py", line 565, in update
self.screen.function(**self.scope)
File "game/screens.rpy", line 602, in execute
screen tooltip_test:
File "game/screens.rpy", line 610, in execute
frame:
File "C:\Program Files (x86)\RenPy\renpy\sl2\slast.py", line 743, in execute
imc = renpy.ui.imagemap_stack[-1]
IndexError: list index out of range
Windows-7-6.1.7601-SP1
Ren'Py 6.99.5.602
I've tried changing the default x and y values as well, to no avail.
For reference, my script has this at the beginning:
Code: Select all
label start:
scene intro
$renpy.pause(3)
show screen tooltip_test
$renpy.pause()
hide screen tooltip_test
show black
and I have
Code: Select all
hotspot(121,97,151,38) hovered tt.Action("Text text text text") action NullAction()
that I stuck in at various places trying to get at least one of my ten or so hotspots to work.