A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
KouhaiChan
Regular
Posts: 30 Joined: Thu Feb 22, 2018 2:33 am
Projects: He Heard Me
Deviantart: KouhaiChan1
Soundcloud: KouhaiChan
Contact:
#1
Post
by KouhaiChan » Wed Apr 10, 2019 2:20 am
Hey guys, quick question. I am a total beginner coder but I wanted to ask why the heart pop up does not show? I am using chungy's code, here is the link to the cookbook I followed
viewtopic.php?f=51&t=52085 and did everything. I have the redheart.png in the images folder and everything shows except the heart. I'm pretty sure its a simple error since the game still plays but there is no heart pop up. Here is my code:
Code: Select all
define v = Character('Vedma', color='#900c3f', what_prefix='"', what_suffix='"')
define m = Character('Mennik', color='#35c4ae', what_prefix='"', what_suffix='"')
define h = Character(' ', color='#be874d', what_prefix='"', what_suffix='"')
define c = Character('?', color='#242e8b', what_prefix='"', what_suffix='"')
#transforms
transform heart:
xpos 620
ypos 780
pause .15
yoffset 0
easein .175 yoffset 20
easein .175 yoffset -20
#Her Sprites
#Mennik Sprites
#Vedma Sprites
image vsmile = "w1.png"
image vunhappy = "w2.png"
image vsly = "w3.png"
image vtalk = "w4.png"
image vhm = "w5.png"
image vgrin = "w6.png"
#Background
image b1 = "b1.jpg"
image b2 = "b2.jpg"
#Music
#define audio.main = "filename.ogg"
#Objects
image redheart = "redheart.png"
label start:
scene bg room
v "I am in the center."
show vsmile at center
show redheart onlayer heartsposition at heart with Dissolve(.5)
hide redheart onlayer heartsposition with Dissolve(1)
v "But now..."
hide vsmile with dissolve
show vunhappy flip at right with dissolve
v "I'm all the way here."
v "Well then..."
hide vunhappy with dissolve
"Vedma has left."
return
Thanks to anyone that can help me!
korova
Veteran
Posts: 217 Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:
#2
Post
by korova » Wed Apr 10, 2019 3:36 am
Have you defined the layer "heartposition" somewhere ? (because that's where you ask the heart to appear...)
According to the topic you mentioned, you shoud have thie line somewhere (options.rpy for example)
1.) Paste this into your options.rpy (I pasted it at the top);
Code: Select all
define config.layers = [ 'master', 'transient', 'screens', 'heartsposition', 'overlay' ]
This helps prevent the heart from getting caught behind the textbox!
KouhaiChan
Regular
Posts: 30 Joined: Thu Feb 22, 2018 2:33 am
Projects: He Heard Me
Deviantart: KouhaiChan1
Soundcloud: KouhaiChan
Contact:
#3
Post
by KouhaiChan » Wed Apr 10, 2019 2:22 pm
korova wrote: ↑ Wed Apr 10, 2019 3:36 am
Have you defined the layer "heartposition" somewhere ? (because that's where you ask the heart to appear...)
According to the topic you mentioned, you shoud have thie line somewhere (options.rpy for example)
1.) Paste this into your options.rpy (I pasted it at the top);
Code: Select all
define config.layers = [ 'master', 'transient', 'screens', 'heartsposition', 'overlay' ]
This helps prevent the heart from getting caught behind the textbox!
Yeah i did do that in the options rpy. The heart pop up still does not show up for some reason
korova
Veteran
Posts: 217 Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:
#4
Post
by korova » Thu Apr 11, 2019 3:46 am
Are your other images in the images folder too ?
What happens if
1) you suppress the line
(if your image is in the images folder, the image definition should be automatic)
2) you change that line with
Code: Select all
image redheart = "images/redheart.png"
(I'm not sur Renpy is looking for your image in the right place)
I'm surprised there is no error message or dummy image though.
+mike
Newbie
Posts: 7 Joined: Sat Oct 07, 2017 1:50 pm
Contact:
#5
Post
by +mike » Fri Apr 12, 2019 6:33 am
Is it because you hide the image immediately after you show it?
Try giving a pause just before the hide command, only to see if the image appears.
• make it simple, it should work! •
KouhaiChan
Regular
Posts: 30 Joined: Thu Feb 22, 2018 2:33 am
Projects: He Heard Me
Deviantart: KouhaiChan1
Soundcloud: KouhaiChan
Contact:
#6
Post
by KouhaiChan » Mon Apr 22, 2019 2:31 pm
korova wrote: ↑ Thu Apr 11, 2019 3:46 am
Are your other images in the images folder too ?
What happens if
1) you suppress the line
(if your image is in the images folder, the image definition should be automatic)
2) you change that line with
Code: Select all
image redheart = "images/redheart.png"
(I'm not sur Renpy is looking for your image in the right place)
I'm surprised there is no error message or dummy image though.
it's not in any folders, I am really puzzled why there is no error message too. I'll keep trying to find a solution, thanks!
KouhaiChan
Regular
Posts: 30 Joined: Thu Feb 22, 2018 2:33 am
Projects: He Heard Me
Deviantart: KouhaiChan1
Soundcloud: KouhaiChan
Contact:
#7
Post
by KouhaiChan » Mon Apr 22, 2019 2:32 pm
+mike wrote: ↑ Fri Apr 12, 2019 6:33 am
Is it because you hide the image immediately after you show it?
Try giving a pause just before the hide command, only to see if the image appears.
That sounds plausible, I'll try that. Thanks!
Users browsing this forum: Majestic-12 [Bot]