[PLUGIN] Scenario

0 favourites
From the Asset Store
Adventure Quiz interactive (Questions and answers via Json)
  • rexrainbow, wow this is great, will definitely like to have this capability in one of my games, thanks so much.

  • rexrainbow a dev friend of mine wants to know, does this plugin uses DeltaTime or other thing to make the game flows fine on slower computers?


  • Uh, the control of timing is at timeline plugin.

    It use DeltaTime by default. User could change the setting by turn "Game time" to "No" in properties table at layout editor. Then using "action:Push timeline forward" to set the dt of timeline manually.

    For example,

    + every tick
    	[li]action:Push timeline forward with delta-time to 1

    means that setting "dt" of timeline to 1 every tick.

  • Update:

    • Now this plugin could use official function to be it's callback.


    Note: remember DO NOT use "action:Setup" at "Z: Deprecated" group (shown at action select list in C2 editor) if user want to use official function plugin.

    Actions at ""Z: Deprecated" group are used for rex_function.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rexrainbow

    nevermind, I hadn?t updated the timeline and the function plugin, it?s working now ;]

    <font color="red">Hi there rex, it seens this plugin(or timeline) is not working under R112 when the project is exported.

    The project is running in preview mode:


    but not in export:


    Could you have a look please? Thank you!</font>

  • rexrainbow Thanks for this excellent plugin <img src="smileys/smiley1.gif" border="0" align="middle" /> . I have a question regarding the CSV file. I have tried making CSV file in Excel, Google Docs, and Open Office; none of which give me acceptable format for this plugin. Major problem lies in the apostrophe "", some text get it and some not. For now I use Notepad++ to make and edit CSV file manually.

    My question is how do you make compatible CSV file for this plugin with spreadsheet program?

    Thank you very much! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • baterism

    There are two method to read csv file.

    1. use AJAX to read file, the file does not need any modify.

    2. replace single " to double "" in csv text file, then put this string in expression.

  • rexrainbow Thanks a lot for your response <img src="smileys/smiley1.gif" border="0" align="middle" /> I never though about using AJAX. Does that mean I don't need to replace the " to "" if I use AJAX?

  • baterism

    Yes, you don't need to change anything if using AJAX to load csv string.

  • rexrainbow Sorry to bother you, but can you please show the example of how using AJAX with Scenario? I have read some article in this site regarding using AJAX, but I still can't make it works.

    What I do:

    Import csv file from Project Bar -> Files

    On start of layout, Request object file with AJAX

    On completed AJAX -> ???

    Thank you.

  • baterism

    Use AJAX expression: LastData to get string under condition: On completed AJAX.

  • rexrainbow I'm still unable to make it works. I've attached 2 capx, one with AJAX and other without. Using AJAX, it keeps showing error line 324 or something.

    Without AJAX it runs like a charm, but it must use rex_function. Using official plugin make the text not appear when exported.

    I'm sorry to bother you. I am trying to make tutorial to use Scenario plugin (in Indonesian, with free version), and I need to cover the use of AJAX with this plugin. Thanks.


  • baterism

    Hum... Ok, I will check why official function could not be callback. It might be a bug. Thank you for this notification.

    AJAX is another story.

  • rexrainbow No problem with AJAX after all. I still need to edit the CSV with notepad, but it is still better than editing inside C2 using copy-paste method. Thank you very much for your help rex! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • baterism

    Using official function object to be callback after exporting works fine at firefox in my testing.

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