vinstah's Forum Posts

  • 6 posts
  • Link to .capx file (required!):

    http://

    Steps to reproduce:

    1. load .caproj

    2. press ctrl->S or save icon

    3. wait patiently for nothing to happen

    Observed result:

    tries to save to an non-existing .capx file, I see it creating a back-up file with extention file.capx.backup1 but I had only saved it as filename.caproj.

    Expected result:

    save my file, instead lost 2 hours worth of work.

    Browsers affected:

    Chrome: yes/no

    Firefox: yes/no

    Internet Explorer: yes/no

    Operating system & service pack:

    windows 7 sp?

    Construct 2 version:

        139

  • Hi,

    usually when developing using functions I can do this:

    function setItems(item = "Can"){

    echo item;

    }

    In Construct 2 is it possible to have that control of function parameters where I can use them as an action like a object e.g.

    |system| on start of layout| function shoot(item = "can")|

    |On function shoot| param(0)|move Y(200)|

    any way to do this thanks or a way to use this

  • hello,

    I am trying to implement shooting a target with a slingshot object in sight like DOOM with a gun and shooting target at a target range.

    what I am stuck on is creating the motion of bullet trying to create artificial intelligence of throwing/shooting something forward and targeting close and far away targets.

    If I am able to use layers or layouts to show up in the space behind and have their objects detect collision of bullet and move around

    I would like to make the game available for any format or device

    thanks

  • quick idea

    What about setting text variable ie:

    Global variable: spawn_order = "blue,red,grey,white"

    and then using TokenAt you could separate and specify which one will spawn first, second, third...

    What a great idea for an alternative to Arrays.. complicate things why don't you?.

    //* CAUTION CODE AHEAD */

    if I

    store spawn_order = "blue,red,grey,white"

    inPlay = | spawn_order(TokenAt(random(0,4))|

    foreach spaw_order | == inPLay|

    call function | loadInplay(inPLay)

    function loadInPlay(inPlay)

    if inPLay == red|

    use |system createObject( red)

    this is just a rough idea, no screenshots as yet just thinking off the top of my head

    /* END OF CODE */

    would this get a random colour?

  • Thanks for your reply,

    I have become more familiar with both the manual and developing with construct 2, amazingly fast worth the money.

    I did read about the JavaScript SDK and see that I am at complete control with including other JavaScript librarys.

    what do you suggest for a good tutorial breakdown on how an already made plugin or behavior was made?

  • Try Construct 3

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

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

    I am new to Construct 2 and love it's simplicity, it reminds me of using Alice 2 back in the day.

    I was wondering whether there is anything stopping me including say three.js javascript library into a pluging using the SDK

    What I really need to know is can I just script three.js in the runtime.js file if it is included??

    Your thoughts please

  • 6 posts