Questions from a newbe

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
redprincess
Newbie
Posts: 1
Joined: Sun Oct 09, 2016 5:02 am
Contact:

Questions from a newbe

#1 Post by redprincess » Sun Oct 09, 2016 5:13 am

I've tried googling my questions but possibly using the wrong keywords.

My game idea is simple. You are searching a map for x# of items. I want the item to appear in the game and once clicked on disappear so they can not return to the same remove and recollect.
How can I make an object appear onscreen that is clickable and will disappear after clicked on? Also, is there a way to have a screen, say at the end of the game, that shows how many items out of how many they collected? (Example I can think of is maybe like the slender man game where you are collecting 7 pieces of paper. No use for them. Can't bring them back up, but it knows it's collected)

I'm sorry if this is else where. I tried searching and the most I found was either On/off screen inventory, and "Leon's inventory screen". Neither are what I'm trying to do.

Any help would be most appreciated. Thanks

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

Re: Questions from a newbe

#2 Post by Ocelot » Sun Oct 09, 2016 5:48 am

Imagebutton which is going to be shown only if some condition is met. Action of that button would be to change some variable to make this condition false.

Something like that:

Code: Select all

default clicked_button1 = False
default clicked_button2 = False
#...
imagebutton auto 'images/button1_%s.png' action SetVariable('clicked_button1', True) sensitive not clicked_button1
imagebutton auto 'images/button2_%s.png' action SetVariable('clicked_button2', True) sensitive not clicked_button2

text 'You have clicked %d buttons' % (int(clicked_button1) + int(clicked_button2))
< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: No registered users