Search found 734 matches

by Milkymalk
Tue Jul 29, 2014 12:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Combining im.Crop and im.MatrixColor
Replies: 12
Views: 1545

[SOLVED] Combining im.Crop and im.MatrixColor

I'm trying to wrap my head around using MatrixColor and matrix in general. So far I have come up with: init python: class Game(object): allships = 'shmup/gfx/ships.png' shipcolor1 = 'shmup/gfx/shipcolor1.png' shipcolor2 = 'shmup/gfx/shipcolor2.png' class Sprite(object): def __init__(self, name): sel...
by Milkymalk
Tue Jul 29, 2014 10:36 am
Forum: Ren'Py Questions and Announcements
Topic: Error when moving an image
Replies: 5
Views: 1506

Re: Error when moving an image

Right, I had totally forgotten about movetransitions... :oops:
by Milkymalk
Tue Jul 29, 2014 9:36 am
Forum: Ren'Py Questions and Announcements
Topic: Error when moving an image
Replies: 5
Views: 1506

Re: Error when moving an image

Xela, while not producing an error, I think actual movement is desired. Kida, you are probably making the same mistake as I did all the time: You believe that with states the transform, when in reality it states a transition. The transform goes after at . show luna normal at center with dissolve l &...
by Milkymalk
Mon Jul 28, 2014 7:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Making a simple shooter system with Ren'Py
Replies: 2
Views: 636

Re: Making a simple shooter system with Ren'Py

It's possible, but a little challenging if you don't know your way around python yet. Ren'Py can do a lot of the needed work with its SpriteManager class, read up on that and look at the examples first. You should understand classes and lists (and ren'py/pygame events) for that. There is no quick-an...
by Milkymalk
Mon Jul 28, 2014 7:35 pm
Forum: Ren'Py Questions and Announcements
Topic: Animations in the main menu.
Replies: 7
Views: 1187

Re: Animations in the main menu.

Put it like this: init: image my_animation: 'frame0.png' pause 0.1 'frame1.png' pause 0.1 'frame2.png' pause 0.1 'frame3.png' pause 0.1 'frame4.png' pause 0.1 repeat Generally speaking, put everything that you want to happen before anything else (like declarations, definitions and so on) in an init:...
by Milkymalk
Mon Jul 28, 2014 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Animations in the main menu.
Replies: 7
Views: 1187

Re: Animations in the main menu.

The main menu is a screen like any other, in screens.rpy. You can just insert a displayable there that you made to animate, like: image my_animation: 'frame0.png' pause 0.1 'frame1.png' pause 0.1 'frame2.png' pause 0.1 'frame3.png' pause 0.1 'frame4.png' pause 0.1 repeat You can freely change the fi...
by Milkymalk
Mon Jul 28, 2014 7:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing the Main Menu Screen
Replies: 2
Views: 556

Re: Changing the Main Menu Screen

Just select your project in Ren'Py and click "Change Theme". It should be under the big "Navigate Script".
by Milkymalk
Mon Jul 28, 2014 5:42 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Displayables in screens: not defined
Replies: 2
Views: 358

Re: Displayables in screens: not defined

Ah, I was thinking it would look for a file named "arrow" then... thanks.
by Milkymalk
Mon Jul 28, 2014 4:54 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Displayables in screens: not defined
Replies: 2
Views: 358

[SOLVED] Displayables in screens: not defined

Why does this result in NameError: name 'arrow' is not defined? I'm sorry if it is obvious, but I'm feeling incredibly stupid right now...

Code: Select all

init:
    image arrow = 'gfx/arrow_white.png'

screen showarrow:
    add arrow
    
label start:
    show screen showarrow
    "..."
by Milkymalk
Fri Jul 25, 2014 10:24 am
Forum: Ren'Py Questions and Announcements
Topic: Hide text box?[SOLVED]
Replies: 4
Views: 587

Re: Hide text box?

Try clicking the middle mouse button aka mouse wheel :)
by Milkymalk
Fri Jul 25, 2014 10:23 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Strange variable behaviour
Replies: 19
Views: 2059

Re: Strange variable behaviour

Not really a valid question if you read the documentation: Call . I did: allowing the return statement to return control to the statement following the call . Following the call is the next line of the function. I'm not that much of a professional programmer to know the implicit difference between ...
by Milkymalk
Fri Jul 25, 2014 6:41 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Strange variable behaviour
Replies: 19
Views: 2059

Re: Strange variable behaviour

That actually makes more sense! I only use longer variable names in places where I don't need them often, so I remember what they mean in case I want to change something later. I know that documenting stuff is more practical, but I don't feel like documenting every dummy variable I ever use in every...
by Milkymalk
Thu Jul 24, 2014 1:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Strange variable behaviour
Replies: 19
Views: 2059

Re: Strange variable behaviour

As long as it works when I use it like that, I'm fine with simplyfied explanations :-) @Xela: I think ui.interact is exactly what I needed, I will try to change my engine to processing all clicks through that in a main loop and only show the screens instead of calling them. This will be a lot of wor...
by Milkymalk
Thu Jul 24, 2014 11:48 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Strange variable behaviour
Replies: 19
Views: 2059

Re: Strange variable behaviour

That explains a lot, though I find it confusing that variables behave in different ways. Back to my initial problem: 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...
by Milkymalk
Thu Jul 24, 2014 8:25 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Strange variable behaviour
Replies: 19
Views: 2059

Re: Strange variable behaviour

Thank you, that clears it up! I guess I will have to stop thinking of "a = b" as "the contents of b are copied to a", but instead as "a is another name for what b is a name for". But another question: Why does this change the sp outside the function: class Test: def cas...