[WIP] Visual Novel Engine in 100 Events

0 favourites
From the Asset Store
100 high-quality cars / boats. This asset is perfect for a top-down game.
  • v1.0:

    https://copy.com/KCTlxMno6FGbhQto

    a small fix to the text displaying that I noticed.

  • Very inresting project !

  • mindfaQ Got an error trying to run this, using Construct r210.

    Chrome

    It crashes on NJ.s and loads only the backgrounf in Firefox with similar error notification

  • Hello, that's weird. I've now tested it in r210 (downloaded the capx from the latest link, to make sure), and all is working for me in Opera (which is based on Chrome's engine), NW.js and Firefox. Did you change anything (events, ...), yet?

  • Torpedo - Do you trying to preview another layout instead of the assigned first layout?

  • mindfaQ

    Tetriser

    Sry for the late reply, been away, Just updated r211, and everything works fine.

  • Wow, thanks for this. You are awesome I'll notify of any bugs I encounter.

  • mindfaQ Thanks a lot. Great engine. Are you still sane after making this?^^

    I tried to make 3 choices, but the third choice always brought me to the result of the 2nd choice. Is it designed to have 2 choices only? Thanks^^

  • mindfaQ Thanks a lot. Great engine. Are you still sane after making this?^^

    I tried to make 3 choices, but the third choice always brought me to the result of the 2nd choice. Is it designed to have 2 choices only? Thanks^^

    Sure, why should I go insane?

    Hmm, for me it works, maybe the syntax is a bit weird/convoluted. It could probably be changed into a simpler syntax.

    Example try exchanging the script in the vn with this and give it a try; the choice at the start should lead you to three different scenes:

    character | Carl | c | 0 | 10 | 60 | Arial 
    character | Steve | s | 0 | 60 | 10 | Arial 
    character | System | none | 255 | 255 | 255 | DejaVu Sans 
     
    anchor | start 
    set | all | 0 
    music | on | main_music 
    background | main_screen 
      text | none | Where do you want to go?/nPlease make a choice :). 
      choice | scene1 | 1 | I want to go to scene 1. | xmid | 200 
      choice | scene2 | 1 | I want to go to scene 2. OHHHHHHHHHHHHHHHHHHHHHHHHHHHH | xmid | 250 
      choice | scene3 | 1 | I want to go to scene 3! | xmid | 300 
        require | on | scene1 | 1 
          goto | scene1 
        require | off 
        require | on | scene2 | 1 
          goto | scene2 
        require | off 
        goto | scene3 
     
    anchor | scene1 
    image | carl_happy | 1 | xmid | ybot 
    fadein | 1 | 3 
    music | off 
      text | c | You did it! 
    image | carl_suspicious | 1 
      text | c | But why am I alone here/n and the background didn't even change.  
      voice | yeah 
      text | c | Hmm, no music playing either... I'll be better getting out of here. 
    runmacro | jumping | 1 
    fadeout | 1 | 3 
    wait | 3 
    image | clear | 1 
    goto | start 
     
    anchor | scene2 
    background | scene2 
    image | carl_happy | 1 | xleft | ybot 
    image | steve_happy | 2 | xright | ybot 
      text | s | Awesome! 
      move | 2 | xmid |  | 1 | skip 
      text | c | You did it! Your decision-making is unparalleled. 
      move | 1 | xright |  | 2 | wait 
      sfx | yeah 
      choice | success | 1 | Go back to the main menu. | xmid | ymid 
    image | clear | 1 
    image | clear | 2 
    goto | start 
     
    anchor | scene3 
    image | carl_happy | 1 | xmid | ybot 
    fadein | 1 | 3 
    music | off 
      text | c | This seems to be the third scene. 
    image | carl_suspicious | 1 
      text | c | It seems to be dangerously similar to the first scene. 
      voice | yeah 
      text | c | ... I'll be better getting out of here, too. 
    runmacro | jumping | 1 
    fadeout | 1 | 3 
    wait | 3 
    image | clear | 1 
    goto | start 
     
    macro | jumping 
    move | /x |  | 620 | 0.15 | wait 
    move | /x |  | 720 | 0.15 | wait 
    move | /x |  | 620 | 0.15 | wait 
    move | /x |  | 720 | 0.15 | wait 
    move | /x |  | 620 | 0.15 | wait 
    move | /x |  | 720 | 0.15 | wait 
    move | /x |  | 620 | 0.15 | wait 
    move | /x |  | 720 | 0.15 | wait 
    macro | jumping[/code:3ccpm8mg]
  • Thanks mindfaQ it works. But I dont understand why should it be "require | off |" then "require | on | scene2 |"?

    Another question if you don't mind, mindfaQ, can we go to another layout after certain scene using the script? Like, after scene 2 I want the game to jump to a mini game in Layout "minigame". Thanks^^

  • think of the require | on and off like:

    if (condition) { ... }

    the part before the dots is the on, the part after the dots is the off. One could probably make the syntax easier, and granted - the evaluation of conditions is very poorly done in the engine - this would definitely be something, that would need some more work. Like also including else, and letting the user write more evaluations than only statx >= valuey.

    The capability to go to another layout can be easily added:

    1) add the function name of your choice for it to the first event

    2) write the function like in the picture

    3) in the script you then can use "layout | layoutname" and it will work - just make sure that your minigame layout goes back to the game layout some time ^^.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks mindfaQ It works. This is very great. Thanks a lot, I learn many things

  • mindfaQ, I managed to add several functions like playing video in the game. The problem is how to make the choices to appear after the video (instead of text) ends? Thanks^^

  • If you can detect in an event when a video ends, you could just do:

    on video finished playing:

    add 1 to position

    call "run" ()

    If you have no indicator when a video finishes, but the user also has no control over the video, you could start a timer with the length of the video + some small leeway, and on this timer, you do the same actions above.

    If you want the user to be able to skip the video, ofc you need to add that functionality, too (on left click and video running -> stop video, position +1, run, something likw that)

  • Hello MindfaQ!!! I was searching for a VN engine that I can use on the free Construct 2 program and this works great! Thank you so much!

    Edit: I'm wondering how to add more than two choices? I am confused what "require" does, even after reading the note in the event sheet.

Jump to:
Active Users
There are 2 visitors browsing this topic (0 users and 2 guests)