Search found 99 matches

by DannX
Fri Jun 15, 2018 8:52 am
Forum: Ren'Py Questions and Announcements
Topic: Help Danganronpa Trial System
Replies: 4
Views: 2523

Re: Help Danganronpa Trial System

Rewrote some of the previous code to make it a bit easier to use and address point 1 and 2 of your previous post, for the panning I can't test it as I can't download the demo right now but it should be a matter of adding the show statements before the call screen, you may have to tinker a bit with i...
by DannX
Thu Jun 14, 2018 4:55 pm
Forum: Ren'Py Questions and Announcements
Topic: How to Animate the UI?
Replies: 1
Views: 541

Re: How to Animate the UI?

Can't check out the game right now but it's probably something like this (untested): transform button_trans: #if mouse is hovering over button on hover: #very simple pulsing animation linear .5 zoom 1.2 linear .5 zoom 1 repeat #when mouse is not hovering the button on idle: zoom 1 screen anim_test()...
by DannX
Mon Jun 11, 2018 11:22 am
Forum: Ren'Py Questions and Announcements
Topic: Help Danganronpa Trial System
Replies: 4
Views: 2523

Re: Help Danganronpa Trial System

Well, first about the error in your screen, in Jump screen action, you have to pass the label as a string: imagebutton "bad1.png" action Jump('debate1c') As for the system itself, some time ago I was working on a similar argument battle system (kind of a mixture between Ace Attorney and Da...
by DannX
Thu May 03, 2018 10:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Dictionary sorting problem
Replies: 9
Views: 991

Re: Dictionary sorting problem

Not to take away from kivik's suggestion of using objects, wich is what I would recommend for this case, but in Python there's also OrderedDict, a special dictionary class that can be sorted and remember indexed order, from what I remember. Can't offer an example right now but you can google it if y...
by DannX
Thu Apr 26, 2018 8:44 am
Forum: Ren'Py Questions and Announcements
Topic: imagemap popout big image at hover, possible?
Replies: 1
Views: 426

Re: imagemap popout big image at hover, possible?

You can try giving it a hovered button property, that runs the action when you hover on the imagemap. vbox: spacing 5 imagemap style "chat_left": ground "test.png" hover "testH.png" hotspot(0, 0, 171, 200): hovered Show("testBig") unhovered Hide("testBig&...
by DannX
Tue Apr 24, 2018 11:53 pm
Forum: Ren'Py Questions and Announcements
Topic: How to keep items in inventory when reloading?
Replies: 2
Views: 576

Re: How to keep items in inventory when reloading?

Try using default instead of define to create your objects.

Code: Select all

default inv = Inventory()
by DannX
Tue Apr 24, 2018 2:17 pm
Forum: Ren'Py Questions and Announcements
Topic: how to style hyperlink
Replies: 5
Views: 1452

Re: how to style hyperlink

I've been wondering about this as well (and I've been having a bit of trouble with styles myself).There seems to be nothing concrete about it in the documentation except a text style property that looks somewhat advanced, here. I'm sure there is a better way though, I'll have to keep testing.
by DannX
Tue Apr 24, 2018 8:50 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 7.0.0 Prereleased
Replies: 41
Views: 10002

Re: Ren'Py 7.0.0 Prereleased

Layered Images sound great, I'll be sure to try them out!

And thank you PyTom and the rest of the Ren'Py team for your awesome work!
by DannX
Mon Apr 23, 2018 3:04 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] 'If' statement, multiple names made to have the same reply in one code
Replies: 3
Views: 527

Re: 'If' statement, multiple names made to have the same reply in one code

I'm not sure I understand what you're trying to accomplish, but if you need to check the player's input against a list of names(strings), you could use, well, a list (a python list): default name = "You" default ethan_list = ["Ethan", "Etan"] label start: $ name = renpy...
by DannX
Mon Apr 23, 2018 1:23 pm
Forum: Ren'Py Questions and Announcements
Topic: In-game screen saver
Replies: 2
Views: 507

Re: In-game screen saver

This might be possible with a timer on a screen that's shown from the very beginning and never hidden. The timer should be reset whenever a button or key is pressed, but I imagine it would be a lot of work just having every other screen in your game behave this way. In my honest opinion, it might no...
by DannX
Mon Apr 23, 2018 12:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Help on making different input names jump to different scenes [SOLVED]
Replies: 4
Views: 767

Re: Help on making different input names jump to different scenes

It might be better to declare the variable using default statement, and use $ interpolation in the script to set the variable instead of using python statement. Also, just in case you should put the easter egg label in a separate file from the script file, or at the very end. Here's what I mean: def...
by DannX
Mon Apr 23, 2018 12:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Help on making different input names jump to different scenes [SOLVED]
Replies: 4
Views: 767

Re: Help on making different input names jump to different scenes

Your syntax and identation are slightly incorrect. First, what you probably want here is to use else statement instead of elif, wich is for checking a different condition, maybe another name, but you're already doing that in the if line with the or statement. So it could be something like this: pyth...
by DannX
Mon Apr 23, 2018 9:29 am
Forum: Ren'Py Questions and Announcements
Topic: Weirdest issue with Class and loop
Replies: 7
Views: 769

Re: Weirdest issue with Class and loop

Oh man, I tried doing that but I left the brackets in (Function(inv.add(),i) and couldn't get it working, thought that other thread would be the solution. Good answer! Yeah, it took me a bit to fully figure out how to use it. I wonder why it doesn't have an example in the documentation, since it's ...
by DannX
Mon Apr 23, 2018 9:08 am
Forum: Ren'Py Questions and Announcements
Topic: Weirdest issue with Class and loop
Replies: 7
Views: 769

Re: Weirdest issue with Class and loop

Adding on to what kivik explained, if you use define ren'py will also save the variable, but I remember reading somewhere that PyTom recommended using default for variables that change regularly and define for the rest, so it's considered best practice. For your inventory buttons, you'll probably wa...
by DannX
Thu Apr 12, 2018 8:31 am
Forum: Ren'Py Questions and Announcements
Topic: screen image issue
Replies: 2
Views: 366

Re: screen image issue

This is only a guess but I think the problem is you are double interpolating the icon screen variable. If story.getIcon() is a function that returns a string with an image name, you don't need to interpolate it between [] brackets, you can simply do this: add icon pos (90, 60) If you need to show so...