Visual novel help ;-;

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.
Message
Author
StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Visual novel help ;-;

#1 Post by StarsongKG »

Soo ive seen Doki Doki literature club, and im trying to find out how to make a character JUMP at the screen.. sorta like what Yuri did in act 2 or when
natsuki snapped her neck and shakily came towards you
im making a game for one of my sisters and i was sorta wanting my sister that lives with me to make my sis jump when she plays it Plz help

User avatar
Enchant00
Regular
Posts: 136
Joined: Tue Jan 12, 2016 1:17 am
Contact:

Re: Visual novel help ;-;

#2 Post by Enchant00 »

Hmm not sure but if your pertaining to the effect where
natsuki charges at you after snapping her head which leads to the bad end
then that can be achieved with just some atl.

Put this code anywhere most preferably above your label start or any other rpy where you defined your custom screens.

Code: Select all

transform jumpscare:
    ease .8 zoom 8.0 
Change the ease of .5 for the speed; the higher the number the slower the zoom
Change the zoom 8.0; the larger the zoom the closer and bigger to the screen

Then when you call the code you apply a vpunch so something like this:

Code: Select all

    'zoom test'
    show apple at jumpscare with vpunch #don't forget the vpunch which adds the shake effect
If you want to see something more visual then I could attach a sample rempy of the code.

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#3 Post by StarsongKG »

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 85: Line is indented, but the preceding say statement statement does not expect a block. Please check this line's indentation.
    show scaretactic danielle at jumpscare with vpunch 
    ^

Ren'Py Version: Ren'Py 6.99.14.1.3218
Tue Apr 03 17:04:10 2018
confuseddd :? :? :(
(Wait was i suppost to change the show apple part?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Visual novel help ;-;

#4 Post by Imperf3kt »

"with vpunch" should be "at vpunch", IIRC, though I could be wrong.
Last edited by Imperf3kt on Wed Apr 04, 2018 7:43 am, edited 1 time in total.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#5 Post by StarsongKG »

OHHHH k :)

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 85: Line is indented, but the preceding say statement statement does not expect a block. Please check this line's indentation.
    show scaretactic danielle at jumpscare at vpunch 
    ^

Ren'Py Version: Ren'Py 6.99.14.1.3218
Tue Apr 03 17:17:38 2018

User avatar
Lord Hisu
Regular
Posts: 58
Joined: Sun Feb 11, 2018 2:31 am
Contact:

Re: Visual novel help ;-;

#6 Post by Lord Hisu »

You should indent your code. That means 4 spaces to the right every time ":" appears on your code.
Like this:

Code: Select all

label start:
    "This code is indented."
    "Note that if I add something that requires a new block, like an if statement..."
    if True:
        "Then you need to move 4 spaces to the right again."
        "When the block ends, you go back 4 spaces to the left."
    "Understand?"
The error on your code is indentation or a missplaced ":" at the end of one of your lines of dialogue.

User avatar
Enchant00
Regular
Posts: 136
Joined: Tue Jan 12, 2016 1:17 am
Contact:

Re: Visual novel help ;-;

#7 Post by Enchant00 »

Imperf3kt wrote: Tue Apr 03, 2018 6:11 pm "with vpunch" should be "at vpunch", IIRC, though I could be wrong.
It is with vpunch rather at since it's more of a transition rather than an atl. It would return an error if you have 2 "at's". The error you recieved is an indentation error meaning somewhere in your code you didn't observe the 4 spaces

Code: Select all

label start:
    'Random text'  #dont forget the 4 spaces  
    show scaretactic danielle at jumpscare with vpunch #should be with not at
    if something:
        'Random test' #dont forget 4 spaces from your if block
    
If you are still having problems, below is the attached rpy of the jump you asked for XD Extract the contents to your project directory. If you dont know where your directory is then open the renpy laucher => preferences => top left you should see the directory; manual navigate to it through your pc
Attachments
Jump.rar
(1.69 MiB) Downloaded 32 times
Last edited by Enchant00 on Wed Apr 04, 2018 7:45 am, edited 2 times in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Visual novel help ;-;

#8 Post by Imperf3kt »

^ this.

I didn't read the traceback properly
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#9 Post by StarsongKG »

Enchant00 it was giving me errors on the spaces and now its letting me open the game for once xD so this worked for me:
'zoom test'
show scaretactic danielle at jumpscare with vpunch #should be with not at
if something:
'Random test' #dont forget 4 spaces from your if block
So yea
Tho idk how to fix this.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 86, in script
    if something:
  File "game/script.rpy", line 86, in <module>
    if something:
NameError: name 'something' is not defined

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/script.rpy", line 86, in script
    if something:
  File "C:\Users\Starsong\Desktop\Renpy\renpy-6.99.14.1-sdk\renpy\ast.py", line 1702, in execute
    if renpy.python.py_eval(condition):
  File "C:\Users\Starsong\Desktop\Renpy\renpy-6.99.14.1-sdk\renpy\python.py", line 1843, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "C:\Users\Starsong\Desktop\Renpy\renpy-6.99.14.1-sdk\renpy\python.py", line 1836, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/script.rpy", line 86, in <module>
    if something:
NameError: name 'something' is not defined

Windows-8-6.2.9200
Ren'Py 6.99.14.1.3218
Jessicas Game 1.0
Wed Apr 04 21:22:32 2018
Confused

User avatar
Lord Hisu
Regular
Posts: 58
Joined: Sun Feb 11, 2018 2:31 am
Contact:

Re: Visual novel help ;-;

#10 Post by Lord Hisu »

That "something" is anything that evaluates as True or False.

Code: Select all

1 < 5 # This is True
"abc" == "abc" # This is True
42 == 5 # This is False

User avatar
Enchant00
Regular
Posts: 136
Joined: Tue Jan 12, 2016 1:17 am
Contact:

Re: Visual novel help ;-;

#11 Post by Enchant00 »

Don't take the "something" literally XD it was just there to give you a brief idea of how spacing is after a condition block like what Lord Hisu stated above ^. For your convenience just omit the if something:

Code: Select all

label start:
    'Random text'  #dont forget the 4 spaces  
    show scaretactic danielle at jumpscare with vpunch 
    'More random text'

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#12 Post by StarsongKG »

Okay! Btw do you know how to move them back cause now i see a big face of the character on the right side of the game xD

User avatar
Lord Hisu
Regular
Posts: 58
Joined: Sun Feb 11, 2018 2:31 am
Contact:

Re: Visual novel help ;-;

#13 Post by Lord Hisu »

StarsongKG wrote: Fri Apr 06, 2018 3:33 pm Okay! Btw do you know how to move them back cause now i see a big face of the character on the right side of the game xD
You need to transform it back to zoom 1.0, or hide the image.

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#14 Post by StarsongKG »

Gracias!

StarsongKG
Regular
Posts: 33
Joined: Tue Apr 03, 2018 4:10 pm
Skype: starsongrebeccawooleverstarsong
Soundcloud: @outlook.com (Skype)
Contact:

Re: Visual novel help ;-;

#15 Post by StarsongKG »

Question how do you tint the screen a color? Like I know you can put blood on it somehow but I want to tint it black-ish.. To make it dark and keep it dark the whole game (unless she finds someone or something that makes her life brighter when she has it with her or when shes with the person)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Rhapsy