Animated Movie Background with Sprite Characters?

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
FidgetSpinner
Newbie
Posts: 2
Joined: Sun Aug 13, 2017 12:58 pm
Contact:

Animated Movie Background with Sprite Characters?

#1 Post by FidgetSpinner »

Is it possible to have a movie background while displaying sprites above it? I can't seem to get it working. I'm able to see text, and play music over said movie background, but once I try to load in a sprite I don't see it.

Is there any way to get a sprite above the movie at all? Or is there some kind of alternative? I really want the background animated for the scene I'm working on.

My code doesn't really have any issues as far as I could tell. Just can't get the sprite to show up. Help would be appreciated.

stop music
play music bg_woke
show movie
play movie "wokemovie.ogv" loop ## Movie is just a 9 frame loop.

show woke with moveinleft




w "{k=4}Welcome to my world.{/k}"

"Where are we? Where am I?"

w "{k=4}We are all. And we are one.{/k}"

"Text continues..."

User avatar
skyeworks
Regular
Posts: 84
Joined: Thu Jul 27, 2017 11:36 am
Projects: K9-11
itch: skyefrost
Contact:

Re: Animated Movie Background with Sprite Characters?

#2 Post by skyeworks »

I have a way but I don't know about movies really.
If you have the frames separate...you might be able to.
Here's my code:

Code: Select all

transform exp:
    "a.jpg"
    pause .2
    "a2.jpg"
    pause .2
    "a3.jpg"
    pause .2
    "a4.jpg"
    pause .2
    repeat

image exp_up:
    contains exp

label start: 
scene bg normal
show Eileen happy
e "You have been grinding this level for hours!"
scene exp_up
e "Oh! YOU LEVELED UP"
Okay so the first one is to do an action with all the frames and giving it a name. The second is telling us, I guess that it's an image. This should work in making you able to use sprites on top but As for using a movie....:( I don't know.
Image

FidgetSpinner
Newbie
Posts: 2
Joined: Sun Aug 13, 2017 12:58 pm
Contact:

Re: Animated Movie Background with Sprite Characters?

#3 Post by FidgetSpinner »

Yea, I'm probably going to have to do it as a frame animation. Thanks

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot]