Changing Choice Boxes

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
User avatar
Mikomi
Veteran
Posts: 324
Joined: Tue Jun 24, 2014 11:45 pm
Completed: That Which Binds Us, Enamored Risks, Alice in Stardom
Projects: Asterism, Magicanna
Organization: Crystal Game Works
itch: CrystalGameWorks
Contact:

Changing Choice Boxes

#1 Post by Mikomi » Sat Jul 12, 2014 4:06 pm

Hello there, I was wondering if you could upload an image to use instead of the standard choice boxes. I want to make a short of "shooting" part in a game, where if the player clicks the monsters head (the "Yes" choice) it is defeated. If this doesn't make sense I'll try to explain it in better detail. Thank you for reading.

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Changing Choice Boxes

#2 Post by SundownKid » Sat Jul 12, 2014 4:32 pm

You can use screens and imagebuttons to substitute for a typical choice menu.

Example of making an imagebutton is here: http://www.renpy.org/doc/html/screens.html#imagebutton

What you will want to do is set the action of each imagebutton to jump to a different story branch.

User avatar
Mikomi
Veteran
Posts: 324
Joined: Tue Jun 24, 2014 11:45 pm
Completed: That Which Binds Us, Enamored Risks, Alice in Stardom
Projects: Asterism, Magicanna
Organization: Crystal Game Works
itch: CrystalGameWorks
Contact:

Re: Changing Choice Boxes

#3 Post by Mikomi » Sat Jul 12, 2014 7:04 pm

SundownKid wrote:You can use screens and imagebuttons to substitute for a typical choice menu.

Example of making an imagebutton is here: http://www.renpy.org/doc/html/screens.html#imagebutton

What you will want to do is set the action of each imagebutton to jump to a different story branch.
How would I do that?

User avatar
ArachneJericho
Regular
Posts: 196
Joined: Sun Jun 22, 2014 2:04 am
Projects: Kaguya Hime
Tumblr: mousedeerproductions
Location: Seattle, WA, USA
Contact:

Re: Changing Choice Boxes

#4 Post by ArachneJericho » Sun Jul 13, 2014 2:36 am

Some example code attached. Look at the bottom of screens.rpy, and also script.rpy.
Attachments
Test 2.zip
(306.51 KiB) Downloaded 37 times

Post Reply

Who is online

Users browsing this forum: Bing [Bot], nyeowmi