This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
However, I also want to be able to delete buttons, depending on earlier choices. For example, in the initial imagemap, there will be six buttons, each of which triggers certain results. On of the results will be that the button, and the triggered event, will be deleted and no longer available, unless some other choice is later made which brings it back.
What's the best way to do this? I can layer buttons in separate png images over the base image, but I can't figure out how to manipulate the imagemap to remove the triggers if the button is deleted. I could probably manage this by calling different screens, depending on which buttons have been deleted, but that seems clumsy.
Any help would be much appreciated.
- Eileen-Class Veteran
- Posts: 1436
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love, unknown
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: xavimat
- Location: Italy
https://www.renpy.org/doc/html/screen_a ... ensitiveIf
Code: Select all
default var = 1 screen test5(): imagemap: ground Solid("#880", xysize=(310,110)) idle Solid("#ff0", xysize=(310,110)) hover Solid("#800", xysize=(310,110)) hotspot (10,10,90,90) action [SensitiveIf(var==1), SetVariable("var", 2)] hotspot (110,10,90,90) action [SensitiveIf(var==2), SetVariable("var", 1)] hotspot (210,10,90,90) action [SensitiveIf(var==1), SetVariable("var", 2)]
Users browsing this forum: Google [Bot]