sgn15's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • Magistross

    IndieKiwi

    Sorry to bother both of you again. It seems I can't get either mid or regexmatchat to work.

    general expression ---> webstorage.localvalue("GameSave" & "x index" & "y index")

    x index expression ---> GameSave_Text.Array_X

    y index expression ---> GameSave_Text.Array_Y

    "GameSave + X + Y" ---> "GameSave" & "use mid or regex for x here" & "use mid or regex for y here"

    =================================================================================================

    RegexMatchAt Method:

    x index expression:

    RegexMatchAt(WebStorage.LocalValue("GameSave" & str(GameSave_Text.Array_X) & str(GameSave_Text.Array_Y) ), "GameSave(\d)\d", "",1)

    y index expression:

    RegexMatchAt(WebStorage.LocalValue("GameSave" & str(GameSave_Text.Array_X) & str(GameSave_Text.Array_Y) ), "GameSave\d(\d)", "",1)

    overall expression"

    webstorage.localvalue("GameSave" & RegexMatchAt("GameSave", "GameSave(\d)\d", "",1) & RegexMatchAt("GameSave" , "GameSave\d(\d)", "",1))

    =================================================================================================

    Mid Method:

    x index expression:

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

    y index expression:

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

    overall 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))

    The RegexMatchAt Method makes the first column (y index = 0) of cells blank (as in nothing is shown) and shows the rest as 0.

    The Mid Method makes all cells as 0.

    (Not counting the LoadGame_Switch condition) I'm using the same conditions (see attached pic) I used in 2 separate events (a. the reverse method, which is saving array values into webstorage and b. the text objects showing the array values). They work, so I'm pretty sure the conditions are right.

    I already checked LoadGame_Switch and it's correct too. LoadGame_Switch is meant to check if I just saved a game (save the information into both array and webstorage) or not (I will load the webstorage into array cells)

    I'm not sure on the x and y of the action.

  • or use health > 0 condition

    don't forget to use For Each: Enemy and For Each: Bullet

  • You definitely need 1 variable each for those parameters (bullet behavior I assume). As for the values of those variables, probably need some math guys to solve your problem.

sgn15's avatar

sgn15

Member since 20 Sep, 2013

None one is following sgn15 yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

14/44
How to earn trophies