Rain not showing up

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
User avatar
amaturemanga
Regular
Posts: 94
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Rain not showing up

#1 Post by amaturemanga » Sat Jun 03, 2017 9:27 pm

Hey i'm trying to add some rain to my scene, now in the previous scene i had it in it was working fine but no matter what i did i can't get the rain to show up in the second scene.

Here's my rain code

Code: Select all

image rain:
        "rain1.png"
        0.2
        "rain2.png"
        0.2
        "rain3.png"
        0.2
        repeat
my code that uses the rain

Code: Select all

    show parkshopnight
    show rain
    
    story "I had just gotten into a fight with my parents."
    story "In my rage i burst out of the house in the pouring rain."
    
    
    
    show playgroundnight 
    show rain
    
    story "I guess it was by pure instinct but in my rage i ran without stopping all the way to the playground."
    story "Once i was there i had no idea what i was going to do."

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Rain not showing up

#2 Post by trooper6 » Sat Jun 03, 2017 9:54 pm

Any particular reason you are using show parkshopnight rather than scene bg parkshopnight?

If parkshopnight and playgroundnight are fullscreen bgs, you should be using scene. The scene keyword clears everything and set up the new scene.

So what is currently happening in your game with your code? You show parkshopnight. Then you show the rain on top of it. Then you show playgroundnight, which goes on top of the other two images, which don't go anywhere because you neither hid them or made a new scene. Then you show rain--but rain is already being shown, it is just under the image playgroundnight.

So I think you need to declare your bgs as bgs, and use the scene command. If you won't do that, then you have to manually hide your images when you want them to go away.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: Bing [Bot]