Hi! Nice to meet u all! I'm new to Ren'py but I have are understand some basics like if, variables, character, story, etc... I just want to ask know a few questions as listed below:
1) can I have the sample code of image button? Because I always have unknown error when I just use the official tutorial's method
2) about in app purchase:
A) same, can I have a sample code please Thanks
B) how can I collect the money I get (lol)
New learner's question
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.
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.
- DannyGMaster
- Regular
- Posts: 113
- Joined: Fri Sep 02, 2016 11:07 am
- Contact:
Re: New learner's question
To answer question 1)
There are various ways of setting up an imagebutton, one of the simplest would be this one.
Right now I don't have time to elaborate on all that but play around with this code a little and check the Documentation for more info here: https://www.renpy.org/doc/html/screens. ... magebutton.
There are various ways of setting up an imagebutton, one of the simplest would be this one.
Code: Select all
screen imagebutton_test():
imagebutton: #Declare a new imagebutton
xpos .3 #Set the x position
ypos .5 #Set the y position
idle "button_red.png" #Set the image to show when the button is idle (doing nothing)
hover "button_red_hover.png" #The image when the button is hovered (mouse passes over it)
action Function(renpy.notify, "Clicked!") #An action/event that runs when the button is clicked.
The silent voice within one's heart whispers the most profound wisdom.
Re: New learner's question
Thanks bro/sis!
- Black Cat 2412
- Regular
- Posts: 74
- Joined: Wed Aug 16, 2017 10:10 am
- Projects: Rapunzel: A classic retold
- Deviantart: BlackCat2412
- Location: Vietnam
- Contact:
Re: New learner's question
1) Learning imagebutton: Have you tried this? I learn a lot about imagebutton from it:
viewtopic.php?t=22565
Remember to download the latest version, though. Otherwise it won't work.
viewtopic.php?t=22565
Remember to download the latest version, though. Otherwise it won't work.
Re: New learner's question
thanks <3Black Cat 2412 wrote: ↑Mon Sep 04, 2017 2:02 pm 1) Learning imagebutton: Have you tried this? I learn a lot about imagebutton from it:
viewtopic.php?t=22565
Remember to download the latest version, though. Otherwise it won't work.
Who is online
Users browsing this forum: Google [Bot]