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.
-
oldhiccup
- Newbie
- Posts: 14
- Joined: Thu Jan 28, 2021 8:27 pm
-
Contact:
#1
Post
by oldhiccup » Tue Feb 16, 2021 2:00 pm
I've been trying to do something stupidly simple, use an image in the imagebutton, so that the code is reused, but it just doesn't work.
1- my first step, i defined one image.
Code: Select all
#buttons
image button_enter = "gui/button/enter.png"
2- my second step, i use image on image button
3- My result
NameError: name "button_enter" is not defined
-
oldhiccup
- Newbie
- Posts: 14
- Joined: Thu Jan 28, 2021 8:27 pm
-
Contact:
#2
Post
by oldhiccup » Tue Feb 16, 2021 2:05 pm
My mistake, a silly mistake, the image needs to be in quotes. lol sorry.
-
cheonbyeol
- Regular
- Posts: 37
- Joined: Thu Feb 04, 2021 9:04 am
-
Contact:
#3
Post
by cheonbyeol » Tue Feb 16, 2021 2:29 pm
Side note: I think you should be posting these kind of questions in the Ren'Py Questions and Announcements subforum.
-
oldhiccup
- Newbie
- Posts: 14
- Joined: Thu Jan 28, 2021 8:27 pm
-
Contact:
#4
Post
by oldhiccup » Wed Feb 17, 2021 12:24 pm
cheonbyeol wrote: ↑Tue Feb 16, 2021 2:29 pm
Side note: I think you should be posting these kind of questions in the Ren'Py Questions and Announcements subforum.
Sorry man, Thanks for the help, I hadn't noticed you were on the wrong topic.
Users browsing this forum: No registered users