LittleStain's Forum Posts

  • Many ways possible..

    adding a horizontal sine and a vertical sine behaviour is maybe the easiest way..

    Just set one of them to period offset 1 and you have your circle..

  • > I'm not sure what you mean..

    > Something like this?

    >

    > https://dl.dropboxusercontent.com/u/485 ... ction.capx[/quote > > > > If i give a sprite the 8 direction behavior and make the event is on screen and follow it up whit the action simulate control left and simulate control down. Now the sprite moves diagonally left and down. Then i want the sprite to move diagonally up and left after tre seconds has passed. How do i make that work? I have tried multiple things but i can't make it change direction. Is this clear enough? > > > What part of my capx don't you understand? I just added randomness, but if you set the direction directly instead of choose, you can get your wanted effect..

  • I'n what way is your player running?

    Does he actually move or does the background?

  • sorry the link was wrong.

    https://drive.google.com/open?id=0B19-3 ... ERCOVp4XzA

    Removing/disabling the platform behaviour seems to do the trick..

    But what effect are you after exactly?

  • Would using the viewportleft(), viewportright(), viewporttop() and viewportbottom() expressions help?

    For example adding an action like:

    Enemy on created

    Enemy is overlapping wall

    • enemy destroy
    • system create enemy at x= random(viewportleft(0)+enemy.width,viewportright(0)-enemy.width)

    Would prevent the wall overlapping.

  • Seems like the scrolling isn't working..

    What project size are you using, what layout size?

    Do you use unbounded scrolling?

    I tend to test on pc, changing the size of my browserwindow to see how the layout reacts to different screen-sizes..

  • This?

    https://github.com/nwjs/nw.js/issues/811

    Or maybe you could set the window transparant and add an Image?

    in your html body, specify the alpha of the background colour, in my example below, I set it to be full transparent

    <body style="background-color:rgba(0,0,0,0);">

    you can set the window's transparency "on the fly" using

    var gui = require('nw.gui');

    var win = gui.Window.get();

    win.setTransparent(!win.isTransparent);

    you can also specify it in package.json

    "window": {

    "transparent": true

    }

  • Would using this export option do the trick?

    Kiosk mode:

    use a "kiosk" display mode, where the app runs in fullscreen and tries to prevent the user from leaving.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • LittleStain Have to say I see you in every thread Nice to see you're helping out a lot!

    Just my way of keeping the mind active while taking breaks from my work.

    Why not use it to help others?

  • Pause on unfocus

    If set to Yes, the preview will pause when the browser window loses focus, e.g. when switching back to work in Construct 2. This can be useful for certain workflows such as using continuous preview. If set to No the preview will continue to run even without focus, but note switching to another browser tab or minimising the browser window will still pause (as it does with published projects).

    Although the explanation in the manual isn't really clear about it, this setting is only meant for the preview.

    In the editor it is mentioned in the description:

    During preview only,whether to pause the game when browser loses focus.

  • Kribzy

    I have tried to do what you say, but it didn't work.

    LittleStain

    i'm working with IID to set text from array. how do i set text from array index without using IID?

    thanks

    Like I said IID changes..

    It's a much better idea to use instance variables or UID, for variables only change if you tell them to and UID stays the same for an object during his lifetime..

  • Maybe you are looking for Something like this..

    [Edit] New version Ajax to Array fixed. In original version Tmp was not fully transfered to ArrayID and ArrayName [/edit]

  • Ist there a special reason you are working with IID?

    IID changes when objects are destroyed and created.

    From the Manual:

    For example, the first instance in two object types both have the IID 0, the second 1, and so on. Therefore the IID neither identifies a unique instance like the UID, nor does it persistently refer to the same instance (if IID 0 is destroyed, the next instance becomes IID 0).

  • Wow, I didn't notice that. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    can i share it now?

    https://www.dropbox.com/s/5lu0dk53nxtuf ... .capx?dl=0

    Yep, you were just 1 post away from total forum-freedom..

    Haha..

    Anyone? I'm at a dead stop here and out of ideas.

    Did you try if exporting to crosswalk works?

    (if you want to support devices with android below 4.4 you'll probably need it anyway)

    Like I said, maybe the webview of your device doesn't support local storage..

    This would mean inside IntelXDK preview it works, because they assume your device supports it..

    If all doesn't work, I found this on the interwebs:

    On this site:

    Local Database IntelXDK

    It says:

    What if WebView doesn’t support IndexedDB?

    Some browser don’t support IndexedDB. So you can include third-party IndexedDB plugin in your app. This plugin adds support for IndexedDB.

    That plugin can be found here:

    Cordova indexedDB