hotspot "the action key was not given a value renpy"

shitcrap1

Newbie
Game Developer
Aug 15, 2023
99
505
My code:


Mapscreens

screen gasolinestation():
text "Hello"
add "Images/mapscreens/backround.png"
imagemap:
ground "shit.jpg"
hotspot (0, 0, 70, 124) action jump "gasoline_1"


script
label gasoline_1:
" dadadads"
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,369
15,285
Python:
        hotspot (0, 0, 70, 124) action jump "gasoline_1"
Well, is a Ren'Py script statement, so obviously it will not works as screen action. But is you use the screen action, suddenly your code will not anymore trigger an error:

Python:
        hotspot (0, 0, 70, 124) action Jump( "gasoline_1" )
 
  • Red Heart
Reactions: shitcrap1

shitcrap1

Newbie
Game Developer
Aug 15, 2023
99
505
Well, is a Ren'Py script statement, so obviously it will not works as screen action. But is you use the screen action, suddenly your code will not anymore trigger an error:

Python:
        hotspot (0, 0, 70, 124) action Jump( "gasoline_1" )
Thanks man, I figured out that I had to use a capital J instead of a small J