Cant remove image [Script]

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
HijiKili
Newbie
Posts: 4
Joined: Thu Dec 06, 2018 3:35 am
Projects: Taka
Organization: EXstudio
Contact:

Cant remove image [Script]

#1 Post by HijiKili »

I'm newbie here XD

In short, I having prob with script
Here mine:
show kara0
"Muncul seorang perempuan yang lebih tua dariku, dia menatapku dan terbata-bata."
hide kara0
show kara3
1#show kara3 as kara0 (its still work) [even with dissolve its work]
x "Tukang galon yak?"
hide kara3
show kara2 at center_righter
2#show kara2 as kara3 at center_righter with dissolve (work but its make second 'kara' shown up)
Tk "Masih pakai pita kak?"
scene bluelightBG
The images is overlapping on #2
Yeah its fine using hide and show, but its kinda absurd transition, especially using dissolve

Any idea how can I get smooth transition? Or explain to me why "show image1 as image2 at position with effect" doesn't work at all?
Sorry if I have a bad English, yeah I'm Indonesian, feel free and thank seeing my problem

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Cant remove image [Script]

#2 Post by Alex »

You need to play the tutorial game that ships with the engine once again.
Also, check - https://www.renpy.org/doc/html/quickstart.html#images

So, the structure

Code: Select all

show my_img as some_name
is used if you need to show 2 copies of "my_img" onscreen at once.


If you want to show an image onscreen,, like

Code: Select all

show kara1 at left
and than show kara2 at center and hide kara1 simultaniousely, then you need to rename your images, like

Code: Select all

show kara normal at left
with dissolve
"..."
show kara smile at center
with dissolve
"?"

HijiKili
Newbie
Posts: 4
Joined: Thu Dec 06, 2018 3:35 am
Projects: Taka
Organization: EXstudio
Contact:

Re: Cant remove image [Script]

#3 Post by HijiKili »

AAAAA XD

Its work and I still dont understand how its work -_-

Do the system understand if "Show" another characters? Its don't replace the first one, right?

By the way, thanks u very much XD
Its really make my day better

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Cant remove image [Script]

#4 Post by Alex »

Yes, system do understand what to show...)) It's all about right names for images.
Check the link I gave you for proper explanation. In short, kara1 and kara2 - are two different images, so they can be shown onscreen simultaniousely. And kara normal and kara smile - has the same tag "kara" so they will replace eachother onscreen when shown.

Post Reply

Who is online

Users browsing this forum: Google [Bot]