Hey,
I wonder if it is possible in ren'py to make multiple things within action statement, but not instantly.
For example, when I hit "A" i want to change the picture of item, wait for 1 sec and hide the item completely.
Can that be done?
Timing commands withing the action statement?
Forum rules
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.
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.
- Bartulisica
- Regular
- Posts: 93
- Joined: Sun Aug 30, 2015 5:11 am
- Organization: ArizonaIdentities
- Location: Croatia
- Discord: ArizonaIdentities
- Contact:
Timing commands withing the action statement?
- ArizonaIdentities
Re: Timing commands withing the action statement?
I'm not sure what you really want, but how about putting them inside a function/label that you can call whenever you need them?
My avatar is courtesy of Mellanthe
- papiersam
- Veteran
- Posts: 231
- Joined: Fri Aug 12, 2016 2:24 pm
- Completed: Gem Hunt Beta, 1/Probably, Animunch
- Projects: The Panda Who Dreamed
- Contact:
Re: Timing commands withing the action statement?
Definitely:Can that be done?
Code: Select all
screen capture:
if atime > 0:
add im #image
key "K_a" action [SetVariable('im', '#f00'), SetVariable('atime', 1)]
if atime > 0:
timer 1 repeat True action If('atime' > 0, true=SetVariable('atime', atime-1), false=NullAction())
label start:
$im = "#fff"
$atime = 0
show screen capture
"Press 'A' to change"
- Bartulisica
- Regular
- Posts: 93
- Joined: Sun Aug 30, 2015 5:11 am
- Organization: ArizonaIdentities
- Location: Croatia
- Discord: ArizonaIdentities
- Contact:
Re: Timing commands withing the action statement?
Interesting, thanks this never crossed my mind. I made it with switching to label and then back to screen. It works now, only the script is a bit messy, but I'll keep your way in mind for next time
- ArizonaIdentities