Can you do investigation phases in Ren'Py? ~SOLVED~

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
Broyi
Regular
Posts: 47
Joined: Sat Oct 25, 2014 4:23 pm
Tumblr: broyi
Contact:

Can you do investigation phases in Ren'Py? ~SOLVED~

#1 Post by Broyi »

I've got this idea on my head for quite a while actually. I want to make some phases like the ''investigation'' sections of both Danganronpa and Phoenix Wright, in where you click an item on the image, in this case, background, a dialog appears explaining about the part of the thing the user clicked. I think this also applies to the investigations in Professor Layton games. Also, please, please, please note that I'm a newbie. I have just one sample game with dialog, transitions, menus, images and backgrounds, which is NVL combined with normal dialog so if you could please explain everything in detail and with some sample code or something. As I said earlier I just have experience with the things mencioned above.

:arrow: Edit:
Let's say there is investigation mode and talk mode.
In Investigation mode the player hovers ''Item X'', and the yellow circle pops up like the menu (but not with the weird text nor the inventory). The user clicks the ''Item X'', the circle dissapears, manually I do a picture of the zoomed in ''Item X'' just to be lazy and not to work with ATL or something, characters appear, they speak they dialog (Talk Mode), and then the picture zooms out and the user go again to Investigation mode. Which one is the code I need? And, is there a tutorial about image buttons?
Last edited by Broyi on Sat Oct 25, 2014 9:11 pm, edited 2 times in total.

User avatar
meiri
Regular
Posts: 177
Joined: Wed Jun 25, 2014 6:21 pm
Projects: Tutor Tabitha, Movement
Organization: Blue Bottlecap Games
Location: East Coast, US
Contact:

Re: Can you do investigation phases in Ren'Py?

#2 Post by meiri »

Might be worthwhile to check this out: http://lemmasoft.renai.us/forums/viewto ... it=+puzzle
That also includes an inventory, I believe.
What's in a loop? A loop iterated in any other way would output as sweet.
--
Have a look at my GxG kinetic novel, Movement, if you have the chance?

Broyi
Regular
Posts: 47
Joined: Sat Oct 25, 2014 4:23 pm
Tumblr: broyi
Contact:

Re: Can you do investigation phases in Ren'Py?

#3 Post by Broyi »

I don't get it... I'll just get this to explain:

Code: Select all

screen outside_room: 
   [b] [u]on "hide" action Hide("displayTextScreen")[/u][/b]
    if iFirewood not in inventory and not fireplace_wood:
        add "outside_wood.jpg"
[b]        [u]imagebutton:
            xpos 370
            ypos 462
            xanchor 0.5
            yanchor 0.5[/b]
            idle "empty.png"
            hover "yellow.png"
            action [Hide("displayTextScreen"),addItem(iFirewood)]
            hovered Show("displayTextScreen", displayText = "Someone left some wood here.") [/u]
            unhovered Hide("displayTextScreen")
My questions about this are:

1. What are image buttons? Is there a tutorial?
2. How do I make them?
3. And what is xpos, ypos, xanchor, yanchor, idle, hover, etc.?

Also, I should explain myself better...
Let's say there is investigation mode and talk mode.
In Investigation mode the player hovers ''Item X'', and the yellow circle pops up like the menu (but not with the weird text nor the inventory). The user clicks the ''Item X'', the circle dissapears, manually I do a picture of the zoomed in ''Item X'' just to be lazy and not to work with ATL or something, characters appear, they speak they dialog (Talk Mode), and then the picture zooms out and the user go again to Investigation mode. Which one is the code I need? And, is there a tutorial about image buttons?

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Can you do investigation phases in Ren'Py?

#4 Post by trooper6 »

There is an Imagebutton tutorial here:
http://lemmasoft.renai.us/forums/viewto ... 51&t=22565

Check it out, play with it, see if it answers some of your questions or helps you form better questions, and then ask again!
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Broyi
Regular
Posts: 47
Joined: Sat Oct 25, 2014 4:23 pm
Tumblr: broyi
Contact:

Re: Can you do investigation phases in Ren'Py? ~SOLVED~

#5 Post by Broyi »

That tutorial solved my problems. Thank you!

User avatar
yon
Regular
Posts: 174
Joined: Tue Sep 09, 2014 5:09 pm
Projects: YDSP
Soundcloud: tetra-yon
itch: v-ual
Location: United States
Contact:

Re: Can you do investigation phases in Ren'Py? ~SOLVED~

#6 Post by yon »

I actually thought about doing something like this recently (in the style of phoenix wright, rhythm thief, 999, games in general where you click on different areas of the screen to investigate further) and yeah, I think an imagemap or buttons would be useful in that aspect.

(Speaking of which, if you have any trouble with imagemaps, you could check out my recent threads on the topic. Might help out with any problems you encounter, since people managed to help solve all of mine so far)

User avatar
Milkymalk
Miko-Class Veteran
Posts: 753
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

Re: Can you do investigation phases in Ren'Py? ~SOLVED~

#7 Post by Milkymalk »

Don't forget "y;n", a game that features investigation and is actually done in Ren'py.
http://lemmasoft.renai.us/forums/viewtopic.php?t=25320
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

Post Reply

Who is online

Users browsing this forum: Google [Bot]