I'm making a practice project! And I decided to show some simple codes for you guys to use!
1. Player-input names
Here's a simple code for the input name. (And an example dialogue.)
First, define the characters!
Code: Select all
define e = Character("[name")
Code: Select all
$ name = renpy.input("What's your name?")
$ name = name.strip()
"Hi [name]."
First, define the characters!
Code: Select all
define e = Character("[name")
define a = Character("[name2]")
Code: Select all
$ name = renpy.input("What's your name?")
$ name = name.strip()
$ name2 = renpy.input("What's your friend's name?")
$ name2 = name2.strip()
"Hi [name] and [name2]."
2. Blinking expressions!
This is a cool feature for your game!
Do this code. (I used DejiNyucu's Free Rin sprite as an example aaand copied the code from my practice project. :3)
First, you should get a sprite with one open-eyed and the other closed.
Then, copy this code!
Code: Select all
image rin cry blink:
"sniff.png"
pause .9
"sniffclose.png"
pause .2
repeat
Then, voila!
Code: Select all
show rin cry blink
with dissolve
e"Umm... Welcome to Rin project 101."
e"I'm Rin Kagamine, but please call me Rin."