Minigames, Combat systems etc..(Where to start) ?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Bartulisica
Regular
Posts: 93
Joined: Sun Aug 30, 2015 5:11 am
Organization: ArizonaIdentities
Location: Croatia
Discord: ArizonaIdentities
Contact:

Minigames, Combat systems etc..(Where to start) ?

#1 Post by Bartulisica »

I was wondering, if I want to take my VN to the next level, let's say import minigames, combat systems etc. obviously I have to learn how to use Python. Where is a good place to start? Is there a webpage, pdf book or anything you could recommend for begginers.. I get the general idea about importing Python scripts in Ren'py, but I have very little or no knowlage in Python, so any suggestion should be helpful.
What's a good Python compiler, too? And can I try my scripts in Ren'py or should I make a script in other compiler, then import it to Ren'Py?
- ArizonaIdentities

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Minigames, Combat systems etc..(Where to start) ?

#2 Post by trooper6 »

Take the Beginning Python course (which is free) from CodeAcademy.com

Also, remember Renpy reads python. I have used lots of python in my scripts and I didn't need to use a python compiler. I just write everything and test it in renpy.
If it is an individual line, you put $ in front of it.

So in a regular python compiler you would write:

Code: Select all

apples = 1
but in renpy you write:

Code: Select all

$ apples = 1
Or if it is multiline you let renpy know you are writing in python:

Code: Select all

python:
    apples = 1
    oranges = 45
    bananas = 3
You can look at this thread on inventories I did and see how much python is integrated into renpy when doing complex things:
http://lemmasoft.renai.us/forums/viewto ... =8&t=30788

So for your combat system, I bet a lot of that would be python, just written into renpy.

As for mini games, I'd say for that you'd want to really learn renpy's screen language system. And then really learn how to make User Defined displayables. I think a lot of mini games can be programmed using those tools.

But start with the code academy class.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
Bartulisica
Regular
Posts: 93
Joined: Sun Aug 30, 2015 5:11 am
Organization: ArizonaIdentities
Location: Croatia
Discord: ArizonaIdentities
Contact:

Re: Minigames, Combat systems etc..(Where to start) ?

#3 Post by Bartulisica »

I will take a look at CodeAcademy, thank you..
And, I know RenPy uses Python, and that you just have to define it.. But what good is that if I can't write my own Python script. :D
Thanks for fast reply. ;)
- ArizonaIdentities

User avatar
Bartulisica
Regular
Posts: 93
Joined: Sun Aug 30, 2015 5:11 am
Organization: ArizonaIdentities
Location: Croatia
Discord: ArizonaIdentities
Contact:

Re: Minigames, Combat systems etc..(Where to start) ?

#4 Post by Bartulisica »

CodeAcademy is something wonderful! Thanks very much trooper6, this helped alot!
- ArizonaIdentities

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Minigames, Combat systems etc..(Where to start) ?

#5 Post by trooper6 »

My pleasure! If you want to do just a basic renpy game with nothing much beyond menus and text...python isn't necessary, but the minute you want to have classes and functions and more complex things....python is a must and I found CodeAcademy to be a really great foundation to build on. (Well...I'd already taught myself a lot of the Python by the time I found CodeAcademy...but it is still great!)
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
Bartulisica
Regular
Posts: 93
Joined: Sun Aug 30, 2015 5:11 am
Organization: ArizonaIdentities
Location: Croatia
Discord: ArizonaIdentities
Contact:

Re: Minigames, Combat systems etc..(Where to start) ?

#6 Post by Bartulisica »

Yes, I managed to learn Ren'Py already, and now it's time to move to the next step. :)
If you have any more suggestions where to go after CodeAcademy course, please do tell. :D
- ArizonaIdentities

Post Reply

Who is online

Users browsing this forum: Bing [Bot]