[SOLVED] Is it possible to have a background image with

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
Pomeranian
Regular
Posts: 33
Joined: Wed Oct 12, 2016 6:52 pm
Contact:

[SOLVED] Is it possible to have a background image with

#1 Post by Pomeranian » Sat Dec 03, 2016 8:42 pm

I was wondering if it was possible for a background image to be composed of livecomposite sprites that works with condition switches - for example if a player buys an item it would appear on their desk in the background of their room, and they have the ability to change the style of their room, and add and remove objects etc. I can program it seperately if need be, but it would save me a lot of time if it happened to be possible with livecomposite instead.
Last edited by Pomeranian on Sun Dec 04, 2016 8:36 pm, edited 1 time in total.

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: Is it possible to have a background image with livecompo

#2 Post by indoneko » Sat Dec 03, 2016 10:01 pm

Why didn't you use layers instead of live composite? especially since player can add and remove objects as they like...
My avatar is courtesy of Mellanthe

User avatar
Pomeranian
Regular
Posts: 33
Joined: Wed Oct 12, 2016 6:52 pm
Contact:

Re: Is it possible to have a background image with livecompo

#3 Post by Pomeranian » Sun Dec 04, 2016 3:18 pm

It just requires a lot of repeated code for each object to be shown - I was just wondering if there was a shorter way to do it, is all.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1882
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Is it possible to have a background image with livecompo

#4 Post by Ocelot » Sun Dec 04, 2016 3:26 pm

  1. You can make a function which shows what you need and call it whenever you want.
  2. You can make a screen with as many conditions and elements as you want, and show it on background layer whenever you want. Screen prediction comes as a bonus.
  3. You can use LiveComposite. I can't see, why it wouldn't work.
< < insert Rick Cook quote here > >

User avatar
Pomeranian
Regular
Posts: 33
Joined: Wed Oct 12, 2016 6:52 pm
Contact:

Re: Is it possible to have a background image with livecompo

#5 Post by Pomeranian » Sun Dec 04, 2016 8:35 pm

Ocelot wrote:
  1. You can make a function which shows what you need and call it whenever you want.
  2. You can make a screen with as many conditions and elements as you want, and show it on background layer whenever you want. Screen prediction comes as a bonus.
  3. You can use LiveComposite. I can't see, why it wouldn't work.
Got it, just wanted to confirm it was possible, thanks :mrgreen:

Post Reply

Who is online

Users browsing this forum: No registered users