Congrats2u's Forum Posts

  • Hello,

    ive posted a similar question about this, but i want to make it more concrete. In our game we would have to implement a leader board (basically those values are saved on an extern webpage)

    To transfer the highscore to the webpage i would have to compare, if the score the player made is under the top 10 or 20 etc.

    To send the score it should be encoded via webtoken to avoid that someone can manipulate the values. And therefore i would have the question, if someone knows how to encode values and send it to an url in construct3.

    On the other hand the url (thats the idea from the other agency who hosts those leaderboard and scores) will send a secret to the game at the beginning and i would have to save it locally, then i would have to encode the score, use this secret and send it back to the webpage, with the score as payload.

    It would be awesome, if someone could help me out with this. (encoding values and how to get values or json files into the project, read them and use the values in the game)

    This seems to be a difficould thing....hopefully its not. Thank you very much for every help!

  • UPDATE:

    It seems to be the pathfinding behaviour which isnt working on ie 11.....the whole game freezes, when it comes to init this behaviour.

    Thanks to Ashley, your answer, that it has to run on older browsers helped me a lot....otherwise i thought it is because of incompatibility......and the part on the scirra forum where you wrote, that c3 doesnt supports ie 11....but now we all now you meant the engine itself, not the games....

    my fault.

    Iam Happy again.

  • Wow why does "dramatic" posts get a faster feedback than all other posts i did...

    This post was pointing the fact, that the game i exported doesnt run on ie 11 - than i was searching and the result was, that c3 isnt running in ie 11 (i assoziated, that the game itself will not run, but if ashley says it works, than everything is fine.....after it will work) - my fault i get it wrong i guess...

    newt - not to work in - but the game i published does not work in ie 11. When iam playing this game it works in every browser, except ie 11 - thats what the post is about. But for our customer it is nessassary too.

    Ashley

    I didnt meant to run c3 in edge/or ie 11 - it depends on the game which doesnt run on ie 11. So are there special settings i would have to make to make this game run? The game runs fine in each other browser, except ie 11. I dont use plugins or anything else except lite tween and touch wrap in it... everything else are the standard behaviours from c3. Hopeflully i get you right, when youre saying it should run without problems in this browser.

    Is there a opportunity you could take a look at the project? I cannot determine the issue and why this game doesnt work. The problem i have is i cant make it public in the forum...

    zenox98

    my fault - sry

  • Ashley

    So i created a game with construct3....today we get the information that it isnt running on the internet explorer (11). After testing i could agree.....then i did a research and found the section, that construct3 isnt supporting ie 11.....say what?

    The newer engine isnt able to run games on an old browser? otherwise construct2 games running in edge....this is a huge fail in my oppinion. Not everyone has windows 10 or edge installed. I like all improvements of construct3 - but decreasing the available plattforms, the games can run on, is a big mistake. Why should i use c3 when i got less range than with c2? I dont get it... so now i have to take everything over into the older engine....

    best - a sad user

  • Ashley

    Engine: Construct3

    When iam exporting without fullscreen mode (fullscreenmode off), the browser canvas shows the whole layout size.

    Basically this should be not visible. My viewport size is 1180x660. To use the pathfinding component, i extracted the ingamelayer to 1180x1000. When the fullscreen mode is enabled, it only visualizes the viewport canvas which is right. But in the fullscreenmode off (i need the canvas unscaled) it shows also the layout canvas. I think this is a bug and shouldnt be like that.

    Every settings in the project are default, so i dont think there is something wrong.

    Has someone an idea how to avoid and fix this? Otherwise i would have to make a report to scirra.

    Thank you

  • Hello there!

    I want to ask if someone has experience with construct2/3 / JSON Web Token / webserver highscore list. And how i could setup the communication between construct2 and the target website with JSON Web Token.

    In my game there will be a score generated, which i would have to encode (JSON Web Token), send it to the website, wehre the highsocre table is embedded. The php script should decode the JSON Web Token and set the score into the list.

    * JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties.

    Any ideas or references or tutorial would be great.

    Thank you very much!

  • C2isthetruth Hey there!

    In my case it worked. But it was a hard trip to bring it to work, but after you find the right tools it isnt that difficould.

    You have to take the screenshot as described in the screenshot documentation.

    https://www.scirra.com/tutorials/1457/s ... oid/page-4

    To get the screenshot onto the mobile phone i used the cordova social sharing plugin, which opens the mobile device social sharing menu (there you can also download the file onto the local storage on your device or send it via installed social media apps):

    https://github.com/EddyVerbruggen/Socia ... Gap-Plugin

    And called the following code:

    https://imgur.com/a/V3tEe

    After that function you have to Call Execute javascript "stop()" from the browser plugin in the next line too. Thats it - it worked just perfect on both IOS and Android.

    Hope i could help a little bit.

  • Hello there!

    I want to upload a highscore i created in construct to an website integrated leaderboard.

    At first i would have to get the values from this page to check, if the player has an higher score as he probably had before (so every player should be unique to determine that there are 10 entries with the same player - there should be an unique tag or something - or an e-mail comparison - basically something to avoid multiple registrations).

    After the comparison, the highscore should be able to transmitted to the webpage. Another question depending on this: How do i make sure that there is no changings on the highscore outside the application? Is it possible to encode the values and encode them via php receiver on the leaderboard page?

    Has someone experience with this topic - I hadnt uploaded an highsocre to an webpage before so each help would be awesome!

    Thank you very much!

  • NN81 Thanks for your update

  • Update: Solved-yea!

  • Okay - ive made the plugin work....now the only part is to get the image into the mail or download.... (excample images . f.e: https://www.google.nl/images/srpr/logo4w.png' working ) but currently my screenshot is not appearing...

    "window.plugins.socialsharing.share('Message and image', null, ' " &CanvasSnapshot & " ', null)" <- trying this one right now

    ive made it via local storage and used a global varialbe (text) to save the snapshot data....but this doesnt work for me....

    see source: https://www.scirra.com/tutorials/1457/s ... oid/page-4

  • Okay, i had another topic before, how to save an screenshot locally on the device....i had no respond - sadly, but anyway i tried to implement the socialshare plugin for phonegap.

    Did someone implemented this before? I was following the instructions on the npm side - so my code snippets looks like this:

    Used Plugin: cordova-plugin-x-socialsharing.

    Source Site: https://github.com/EddyVerbruggen/Socia ... n#manually

    Screenshot of my code snippet in c2: https://imgur.com/a/xJ2y8

    or this execution part (same as in the screenshot)

    "window.plugins.socialsharing.shareViaEmail('Message','Subject',['example@mail.com'],null,null,'cb_ScreenshotLink'

    );"

    could you tell me if i made everything right? Because i have no result if iam pushing the "share" button. Nothing appears

  • Try Construct 3

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

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

    i have a question about how to load an image from my source folder for mobile (thats important). I use the load image from data command and it works on pc but not on mobile and i dont know why...

    I made a color book and to avoid a lag which appears if there are to much dots on stage ive made a screenshot with the background of the drawing and put it into my sprite. So far so good. but this sprite (its complete empty at the beginning) will be filled with the screenshot during the whole runtime (if i start another layout etc. the sprite keeps the screenshot and i cant delete it), so i have to load a blanc sprite from my source folder to "delete" the screenshot drawings... its complicated but it works, but not on mobile, because he doesnt load the image from my image folder....and i cannot delete the screenshot information inside the sprite, when restarting the layout.... its so damn weird...

    Has somebody an idea why the devices cant load an image from project folder? it would save my life....

    Its so horrible - i have so much problems with c2 on mobile.....

    I need help .... its very important...

    Thank you very much!

  • warmty

    Hey there! I have the exact same problem - did you get this one to work? Would be awesome, because i need this function in the app iam creating right now.

    Thank you very much!

  • dop2000 Ashley do you have an idea? on ipad there is an screenshot taken, but its placed on top of the canvas and i cant save it.....

    has someone experiance how to make this thing work?

    I found this one...but there is no clear setup how to get it to run with construct2:

    Would be awesome

    Thanks in advance