Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: nightbaron070 on August 17, 2010, 11:43:35 am

Title: Python help
Post by: nightbaron070 on August 17, 2010, 11:43:35 am
So I'm in the midst of making a game in Ren'py, the visual novel engine, which is made in python. and the I'd like to know how to use the call (or what ever it's called in python) function. just to help organize it and make it look better.
Title: Re: Python help
Post by: alberthrocks on August 17, 2010, 02:34:45 pm
Hey there! I'm a Python dev, so I might be able to help.
Never heard of Ren'py before, but it looks really awesome :D (assuming this is it: http://www.renpy.org/wiki/renpy/Home_Page)

AFAIK, there's 2 levels of programming: regular, story telling levels, and then the actual Python programming.
If you are doing Python, you need to import the library.
Then assign keys to certain functions and such :)

Of course, this is just speculation. I need to know what you are trying to do first, then
we can approach the problem. :)
Title: Re: Python help
Post by: Raylin on August 17, 2010, 04:13:32 pm
I am a Ren'Py veteran.

What are you trying to do?
Title: Re: Python help
Post by: nightbaron070 on August 18, 2010, 12:10:41 pm
I want to be able to write a certain part of the script somewhere, like at the end of the program, and then then be able to call back to that portion of the script at another point in time. Like if i have an event that happens multiple times then i want to be able to have it go to that part instead of me having to rewrite it.