Search found 734 matches

by Milkymalk
Thu Jul 24, 2014 8:19 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Sprite manager sprites and layers
Replies: 2
Views: 852

Re: Sprite manager sprites and layers

Thank you! I found out number 1 by myself by now, but the rest will come in very handy soon :)
by Milkymalk
Wed Jul 23, 2014 1:08 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Strange variable behaviour
Replies: 19
Views: 2059

Re: Strange variable behaviour

So, when I write effectbuffer = sp.effects the two variables are equivalent and changing one changes the other, and changing a variable that is part of the function arguments changes the variable the function was called with? If so, no need to clarify, that was ecactly the answer I was looking for :...
by Milkymalk
Wed Jul 23, 2014 11:38 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Strange variable behaviour
Replies: 19
Views: 2059

Re: Strange variable behaviour

Yes, already tried that. It switches to a completely different canvas if I do that. Also, another strange thing, more of a Python behaviour. class Test: def cast_spell(self, sp): effectbuffer = sp.effects while len(effectbuffer) > 0: currenteffect = effectbuffer.pop() [...stuff...] I encountered a b...
by Milkymalk
Wed Jul 23, 2014 9:54 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Strange variable behaviour
Replies: 19
Views: 2059

Re: Strange variable behaviour

Sure: screen mainparty_spells (bat): zorder 5 frame at partyspells: xsize 200 ypos 100 $ spellcurry = renpy.curry(bat.cast_spell) vbox: for spell in range(len(bat.playerparty[bat.activecharacter].spells)): frame: xsize 0.9 ysize 100 ypadding 20 vbox: textbutton bat.playerparty[bat.activecharacter].s...
by Milkymalk
Wed Jul 23, 2014 9:34 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Strange variable behaviour
Replies: 19
Views: 2059

[SOLVED] Strange variable behaviour

This is strange. I watched the variable lastspell through the console when something didn't work, and this happened: def cast_spell(self, sp): global lastspell self.setactivecharacter(1 - self.activecharacter) lastspell = sp.name renpy.restart_interaction() def setactivecharacter(self, char): if cha...
by Milkymalk
Tue Jul 22, 2014 11:08 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Variables with code causing errors?
Replies: 6
Views: 1028

Re: Variables can't have code? (Trying to simplify some writ

No, [] interpolation is fine for this and you shouldn't use old-style interpolation if you can avoid it. Hm okay :) That's one of MY problems I always have, I have a hard time telling what is outdated and what is current. Just today I was fiddling with layers and the documentation said there are th...
by Milkymalk
Tue Jul 22, 2014 10:24 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Variables with code causing errors?
Replies: 6
Views: 1028

Re: Variables can't have code? (Trying to simplify some writ

cYou "You say, with some hesitation[myP] I don't[myP] Know how to say this[myP] [myPx] [myP] But[myP] I love[myPx] you..." Try: cYou "You say, with some hesitation%(myP)s I don't%(myP)s Know how to say this%(myP)s %(myPx)s %(myP)s But%(myP)s I love%(myP)s you..." See also: http:...
by Milkymalk
Tue Jul 22, 2014 2:36 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Sprite manager sprites and layers
Replies: 2
Views: 852

[SOLVED]Sprite manager sprites and layers

Can I set sprite manager sprites to a layer so they become invisible when the middle mouse button is clicked (like the say window)? On the same note, how can I remove the say window until I want to make it visible again? pause is not what I need because it freezes the game, I just want the say windo...
by Milkymalk
Tue Jul 22, 2014 9:55 am
Forum: Ren'Py Questions and Announcements
Topic: [Workaround] Prevent 'show' from stopping previous animation
Replies: 4
Views: 801

Re: Prevent 'show' from stopping previous animation block

That would make it take another 100 seconds to finish. But you could start a timer when the first transformation starts and call the second linear statement with the remaining time.
by Milkymalk
Tue Jul 22, 2014 7:42 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED"ATLTransform object does not support indexing" error
Replies: 0
Views: 392

[SOLVED"ATLTransform object does not support indexing" error

This gives me an "'ATLTransform' object does not support indexing" error, but why?

EDIT: I was being stupid...

Code: Select all

align truecenter
Yeah, sure... what was I thinking...
by Milkymalk
Mon Jul 21, 2014 11:04 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Python equivalent of 'show'
Replies: 2
Views: 333

Re: Python equivalent of 'show'

Ah I get it. My mistake was that I thought the second argument will automatically be passed as the 'what'. Works perfectly now :) Thank you!

As you can probably guess, I am not very experienced with actually using Python instead of Ren'Py script language.
by Milkymalk
Mon Jul 21, 2014 10:56 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Python equivalent of 'show'
Replies: 2
Views: 333

[SOLVED] Python equivalent of 'show'

Got this here: http://www.renpy.org/doc/html/sprites.html what is the Python equivalent of this? show expression repulsor as repulsor I know it's renpy.show(), but if I say renpy.show(myspritemanager) I get an error message saying sprite manager can not be split. I guess it comes from Ren'Py trying ...
by Milkymalk
Mon Jul 21, 2014 8:18 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] sprites and zorder
Replies: 5
Views: 647

Re: sprites and zorder

Asceai wrote:Perhaps try updating your version of Ren'Py.
Yes, that did the trick :D Thank you!

The funny thing is, I usually use the newest release, but I did this on an old machine that still had the old version on it.
by Milkymalk
Mon Jul 21, 2014 7:11 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] sprites and zorder
Replies: 5
Views: 647

Re: sprites and zorder

Here is the complete thing, with images.

You can do:

Click a ball: the ball disappears, the remaining balls slide left, a new ball is created on the right.

Click in the lower portion of the screen: Generate a new line of balls
by Milkymalk
Mon Jul 21, 2014 7:06 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] sprites and zorder
Replies: 5
Views: 647

Re: sprites and zorder

number_balls is fixed. It's just the length of the balls sprite list, so I can change it in one place when I want to use more balls. It's only "incorrect" between deleting a ball and appending the next one, which is a few lines shown here.