Author Topic: Python help  (Read 3013 times)

0 Members and 1 Guest are viewing this topic.

Offline nightbaron070

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Python help
« 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.

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Python help
« Reply #1 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. :)
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Python help
« Reply #2 on: August 17, 2010, 04:13:32 pm »
I am a Ren'Py veteran.

What are you trying to do?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline nightbaron070

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: Python help
« Reply #3 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.