Dasat's Recent Forum Activity

  • fixed most of the issues i had. thanks

  • Noncentz705, i finally got it to work, thanks.

    I have a couple of questions though.

    1) how do i specify the directory to run a file in the app folder, this backward and forward slash things are causing problems?

    2) The same file i want to run with node-webkit, i would like to request it with ajax request url, for ajax request url, it just needs to be in the same folder with the executable, how can i work around this?

    I've written a plugin that pipes to cmd directly, and returns the shell response, but I won't release it.

    The double batch trick works fine. Make sure you've defined a global variable named cd and that you are previewing with node-webkit.

    Global text c:/users/bob/desktop/foo.bat

    On some event browser execute JS "require('child_process').execFile('"&cd&"');"

  • Create two bat files :

    File1.bat

    start C:\Users\%username%\Desktop\project_folder\File2.bat

    rem Notice I didn't use %cd%\File2.bat because preview runs from a temp folder;

    File2.bat

    echo CMD STARTED

    Now in your project back in construct

    - add the browser plugin to your project

    - create a variable named cd and set it's value to the path of your first bat file with \\ 's

    To launch cmd Browser Execute Javascript :

    "require('child_process').execFile('"&cd&"');"

    With that said there's probably a way easier way to do this

  • Noncentz705", please more light on this, i got this error log in my console. Thanks

    Error executing Javascript:

    ReferenceError {stack: (...), message: "require is not defined"}

    message: "require is not defined"

    stack: (...)

    get stack: function () { [native code] }

    set stack: function () { [native code] }

    __proto__: Error

    Browser_plugin.js:609

    0

    Create two bat files :

    File1.bat

    start C:\Users\%username%\Desktop\project_folder\File2.bat

    rem Notice I didn't use %cd%\File2.bat because preview runs from a temp folder;

    File2.bat

    echo CMD STARTED

    Now in your project back in construct

    - add the browser plugin to your project

    - create a variable named cd and set it's value to the path of your first bat file with \\ 's

    To launch cmd Browser Execute Javascript :

    "require('child_process').execFile('"&cd&"');"

    With that said there's probably a way easier way to do this

  • bump

  • Ashley, is it possible to have a textbox area such that, i can scroll left and right to view more of the texts, we could be able to set a limit to how large the horizontal or right scroll could be?

    Dasat

    I am not sure. You might post this request to Ashley.

  • share a capx

  • rexrainbow, i just tried installing this plug in and i get the error, ---------------------------

    HTML5 exporter

    ---------------------------

    Unable to load plugin in 'F:\Installations\Construct 2\exporters\html5\plugins\rex_boundary\': Found 'GetPluginSettings' global, but it is not a function

    This plugin will not be available in the editor.

    ---------------------------

    OK

    ---------------------------

    Any help

    Behavior: scrolling

    Update: 2013/06/29

    Note: this behavior is for text plugin or official sprite font plugin, NOT for sprite.

    This behavior try to make official text object become a "scrollable" text object by maintain a content buffer in plugin.

    Demo

    Capx - scroll next line

    Capx - scroll bar

    There are two sample capx files. One is scrolled by keyboard, the other is scrolled by scrollbar.

    Usage:

    Set content

    - action: Set content

    - action: Append content

    Scrolling

    - action: Scroll by percentage (combine with scrollbar)

    - action: Scroll to next line/Scroll to previous line

    - action: Scroll to next page/Scroll to previous page

    Get content

    - expression: Textrexrainbow2013-06-29 16:38:39

  • rexrainbow, is it possible to have a textbox area such that, i can scroll left and right to view more of the texts, we could be able to set a limit to how large the horizontal or right scroll could be?

    Kyatric

    Please remove the link of this behavior, since it had been supported in text box plugin officially.

  • i'm trying to create tables on start of a layout, with text boxes for use to input some values, its such that my table is going to be dynamic, it depends on somethings the user must i've input before, such that now i might have to create a 5x8 table(row x column) and later, 20 x10. Also, because of how the size would vary, i might need to be able to scroll the layout vertically and horizontally, incase number of boxes created spills over the layout size. Any help on this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • daehawk, what would be your advice, i'm trying to do something like this, only that my table is going to be dynamic, it depends on somethings the user must i've input before, such that now i might have t ocreat a 5x8 table and later, 20 x10. Also, because of how the size would vary, i might need to be able to scroll the layout vertically and horizontally, incase number of boxes created spills over the layout size. Any help on this?

    I don't see why C2 couldn't do it. Now doing it with only drag and drop all the stuff you need that'd be no. But also C2 you don't write the code yourself. You use Events that mimic coding essentially. So all you have to do is work out your Events and the Layouts. They have a TextBox Object that you can use to allow people to type into the box. Arrange them into 8x8 on the Layout field if you want. And then have Text elements that display words for them to type into. Can save the words into an 8x8 Array for the quizzes to read from for answers and for on the setting up when they fill them out.

    Validation you just make an event that checks the Array with the Entry. Then have it display Correct or play the sound.

    You can have all the controls you want in the thing. Like I just posted a Battle system starting basics for an RPG I'm making and it allows inputs from Keyboard, Mouse, Gamepad, and Touch.

    Do tutorials exist I'm not sure on that one because I didn't look. I'm not much into making education games. But visit the https://www.scirra.com/tutorials/top and look around there's a lot of them that can teach you things to do and methods to do them.

  • I'm trying to get an even triggered when a particular item in a list is right-clicked, such as delete or another list of possible options to be displayed on rightclick on an item in my list box. but right click on the listbox as a whole always bring up this list of back, forward, reload, print etc. Anyway around this?

Dasat's avatar

Dasat

Member since 14 Apr, 2013

None one is following Dasat yet!

Connect with Dasat

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies