fade (flash) question

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
VorrAkkagi
Newbie
Posts: 21
Joined: Tue Dec 11, 2018 5:41 am
Contact:

fade (flash) question

#1 Post by VorrAkkagi » Fri Dec 21, 2018 2:59 pm

I wish to have a flash effect happen whenever the char has specific things happen with point adjustments. Meaning if the char makes a choice, and a random number is rolled, which when is above a certain value, the char gains a point in that skill, or whatever. I'd like to have a flash effect occur when this happens so the user will know something has happened. I know the code is right (because I copied it out of the manual =P ), I just don't know how to call it.

My defined code. I only changed the defined name...

Code: Select all

define flashwhite = Fade(0.1, 0.0, 0.5, color="#fff")
And here in this code I wish it to flash if the d20 roll is above 15. But I don't know the command to make the 'flashwhite' execute.. because <----Noob =P

Code: Select all

"Peek in the front window":
            $ d20roll = renpy.random.randint(1, 20)
            if d20roll > 15:
                $ sneek  +=1
                flashwhite
                jump impressed
            else:
                 jump frontdoor
Thanks for your input! =)

Post Reply

Who is online

Users browsing this forum: drKlauz, gas, RicharDann