sgn15's Forum Posts

  • What exactly causes that red loading bar (which goes to 100%) but never proceeds to go to preview?

    Unfortunately, I can't upload my file.

    Anyone with suggestions/ideas, please help. Thanks.

  • danuyos

    So it seems after a few testing and trying an older version of the file in r195, the problem persists. So it's not about the version.

    Can you be more specific? what's wrong with my pc?

    Some testing results: I preview the file, sometimes it goes red loading bar, I click preview again without changing anything, sometimes the preview loads fine. This really makes me dumbfounded as I literally don't need to change anything to make preview sometimes work, sometimes it doesn't. It's purely random???

  • I only install the stable updates of C2. So I only noticed a while ago that r200 (latest stable update) was released, I downloaded and installed it.

    My old file no longer previews on any browser. The loading bar becomes red as soon as loading the preview starts. It loads up to full bar but never goes to preview the layout itself, hence the preview doesn't work.

    I tried a blank new file and preview it, it seems to work fine.

    Anyone has an idea what can be the source of the preview problem? I never encountered the red loading bar before. Please help. Thanks.

  • Ok. So from how I understood the replies, I only need to adjust the pixels I cut and transfer but it is the correct method? I also need to do this same concept to some other non-symmetrical sprites though, so I would hope for a more generally applicable to all answer

    korbaach

    bladedpenguin

  • I need some tips on how to animate this like I intended to.

    It's like for design purposes only. I want the chain to "move infinitely from left to right" via animation without changing the position

    I tried this method (below) to make it seem like a moving animation but it's not a smooth animation:

    cut a few pixels from the left side, paste that cut part at the end of the right side, copy new frame, repeat, until first frame is reached (then set loop animation to yes)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Was earlier testing in version 198

    Uninstalled 198 and installed 195 and restarted computer. Still the same problems persist.

    I'm really clueless on this as I'm not really knowledgeable about webgl in the first place. I guess it's my computer and not C2 with the problem?

  • volkiller730

    I thought it was my old file with problem. But now I started a blank new game, inserted a sprite object and added inverse effect (just for testing) and run preview in Firefox:

    In Firefox testing:

    These dialog messages appeared:

    [quote:1p1b4dpn]Assertion failure: Error linking shader program: Failed to create D3D shaders.

    Stack trace:

    assert2@http://localhost:50000/preview_prelude.js:16:10

    GLWrap_.prototype.createShaderProgram@http://localhost:50000/glwrap.js:435:1

    GLWrap_.prototype.initState@http://localhost:50000/glwrap.js:249:16

    GLWrap_@http://localhost:50000/glwrap.js:109:3

    Runtime.prototype.initRendererAndLoader@http://localhost:50000/preview.js:501:18

    Runtime.prototype.loadProject@http://localhost:50000/preview.js:1574:3

    Runtime.prototype.requestProjectData/xhr.onload@http://localhost:50000/preview.js:396:6

    Subsequent failures will now be logged to the console.

    I clicked ok on that one (above) and this one (below) appeared

    [quote:1p1b4dpn]Javascript error!

    TypeError: s is null

    http://localhost:50000/glwrap.js, line 550 (col 3)

    This may be a bug in Construct 2 or a third party plugin or behavior - please report it to the developer following the bug report guidelines. Subsequent errors will be logged to the console.

    I clicked OK again and message disappears.

    The preview is literally blank. It's not showing anything from the layout in C2.

    In Chrome testing:

    The sprite appears in preview but without the webgl effects. No dialog messages appeared.

    In C2 Layout view:

    The sprite with webgl effects is not showing the webgl effects on Layout view.

    Tried changing/adding effects, all 3 programs show the same symptoms as described above.

  • Anyone help please?

  • I have been using my laptop for a while for C2 coding, but it got wrecked and I transferred to my old desktop (for now). WebGL seems to not work. I tried updating my graphics driver and also installed dxwebsetup (from microsoft website).

    A quick search shows that I have WebGL according to see a spinning cube here?

    https://get.webgl.org/

    What exactly makes WebGL work? Please explain to me what I need to make this work (in non-technical terms).

    Uhm, if I may add, I am talking about preview on browser. WebGL effects doesn't work on preview, so I'm pretty sure they also won't if I do try exporting.

    Thank you in advance.

  • Something like this?

    System: Random(1) = 1

    create object at player.x+100+random(1000)

    Else

    create object at player.x-(100+random(1000))

    and same for y

  • oh, by the way, System conditions don't pick instances. But I assume you only have 1 player object at any time so it should not be a problem for this situation.

    What is platform.MovingAngle? are you referring to angle of gravity of platform behavior?

  • I DID IT! 2 days (and nights) or trying to figure this out finally bore fruit!

    Magistross

    IndieKiwi

    Thanks to both of you. Very very much appreciated.

    I said in my previous post that conditions were correct, and then the expressions for the value were correct (I tried them in a separate text object and they showed the correct values). The last thing that was unconfirmed to be correct were the X and Y parameters (in the screenshot I posted above)

    So I changed the X and Y to:

    X changed from GameSave_Array.CurX to GameSave_Text.Array_X

    Y changed from GameSave_Array.CurY to GameSave_Text.Array_Y

    GameSave_Array is an array object while GameSave_Text are text objects in my load game layout each with different values for Array_X and Array_Y variables.

    For those who might need to do something similar to this, here are the expressions that work for me

    Mid expression

    WebStorage.LocalValue("GameSave" & mid("GameSave" & str(GameSave_Text.Array_X) & str(GameSave_Text.Array_Y), 8, 1) & mid("GameSave" & str(GameSave_Text.Array_X) & str(GameSave_Text.Array_Y), 9, 1))

    RegexMatchAt expression

    Webstorage.localvalue("GameSave" & RegexMatchAt("GameSave" & str(GameSave_Text.Array_X) & str(GameSave_Text.Array_Y), "GameSave(\d)\d", "",1) & RegexMatchAt("GameSave" & str(GameSave_Text.Array_X) & str(GameSave_Text.Array_Y), "GameSave\d(\d)", "",1))

  • can you paste a screenshot of your events?

  • https://www.scirra.com/manual/140/dictionary

    are you talking about the dictionary expression for retrieving values?

    I think you can use for each and use currentkey and currentvalue for what you want to do