Voytek's Recent Forum Activity

  • I want the input string from either i.e. web based or android based to be updated in both. The user enters his name and age in any of the two games, and i want these two inputs name and age take effect in both games.

    In fact in my game the user enters more input data. it is convenient to do so on a desktop, because of the existence of a physical keyboard, but it is impractical on the mobile version. Therefore it would be practical for the user to enter data on desktop version of the game so that it gets also automatically updated in the website game and android game with one lick, at the same time.

    In other words, say i want to have an input in my web based game, where i type in "hello world", i click a button in the web based game and this very "hello world" gets updated/sent to the android game and is displayed in a text box in the android game, and ideally the other way round.

  • I cannot give u the exact sollution for exactly your problem, but when i wanted to pick values without duplicated i researched the Fisher Yates shuffle without duplicates. It help me. have a look at my old post here, maybe u will find it useful: https://www.construct.net/en/forum/construct-2/how-do-i-18/fisher-yates-work-function-148857?kws=Fisher%2bYates

  • I have a game working in a browser on local host. I have the same game in a mobile android version.

    What i want to do is make sure some data are synchronized between the very same website game and android game. The data is in the array in each game.

    thus, any time the user makes any changes in the data stored in the array on the website, i want that data to be changed automatically on the android version of the game, and the other way round that is once the user makes changes in the data stored in the array on the mobile version of the game, i want that data to be automatically changed in the website version of the very same game.

    What is more, i want to make it as simple as possible preferably using front end only without resorting to a server side.

    My goal is to make it work for any and every user using both the website game and mobile version of the game. I assume i will most likely need some unique keys allowing to identify each game pair too. I have no idea how to do that since one game will be pretty much the same sitting in a browser, and the other game should be downloadable from google play for instance. Then each game will have to somehow communicate with its sibling. PLEASE HELP!

    please be kind to give me a detailed explanation, ideally some code for reference.

  • Drear Reader,

    I have read that implementations of NFTs for games revolve around game assets like an NFTs' sword or any other type of inventory, another example would be a special skin for whatever in the game. Thus NFTs would work like a part of game.

    However, is it possible to publish an entire game as NFT?

    I have read that an art creator making their art may state in the NFT contract that they will get a certain amount of % from every transaction. It means that they make their art e.g. a picture of yoda, then they sell it as NFT, and then if that NFT goes up in value and somebody else sells it, the original creator gets a stipulated % from a transaction, and everything continues. So you make money once and then every time somebody sells your game to somebody else.

    it seems like an interesting way of making your game fully unique and somewhat copywrited. Plus it is an interesting monetisation model.

    however i know only theory of NFT, i do not know how it works in detail and if an entire game can solely stand as separate NFT entity on its own?

    I have read that a video clip can be made into NFT, can an entire game be published as NFT, how to do it? Responses, answers resources welcome!

    Thank you in advance!

    Tagged:

  • You do not have permission to view this post

  • I know that there is something like ad mobs. However, it seems they work on mobile devices when a game is exported for such a device. According to some tutorials they explicitly give options for IOS or android.

    I want to have my games on a website, also to be accessed by mobile devices but via the webpage only.

    Thus how to place such ads within a game.

    Please link me to up-to date tutorials, or share capx.

  • I want to give a player the ability to control game variables i.e. total number of points to achieve, speed increase of enemies and much more.

    Once you click on the advanced, you are moved to another layout with more things to enter.

    Question 1: Is it really the way to have such a form? If there are other ways, please post a screen shot or link somewhere.

    I suppose, i do not sanitise the form with values except for limiting the character length or maximum/minimum number. Or should i "sanitise" it somehow. Sb once told me that as a general front end practise, i should do the following:

    "You still SHOULD output encode any value accepted as input. Depending on how your app receives input (e.g., some could accept values from URL on load, etc.) it could still be vulnerable to certain XSS attacks.

    It's probably not just given how simple it sounds like your app is, but you are better off just 99.999% using output encoding at ALL times (its default on a lot of frameworks with binding for a reason)".

    Question 2: Isn't it done by construct 2/3 by default?

    If not, how should i do it?

    I am going to have my game on Amazon S3, it is going to be a front end only static website.

  • dop2000> I love Construct 3!, you are ingenious and your suggestion is remarkable.

  • I am looking for a way to split a string by whitespace separator and put it into an array in construct.

    I would like to be able to split user's string input into an array. Separator must take into account whitespace " ".

    There is a split function in javascript that does it right of the bat.

    This is partly what i would need

    var str = "How are you doing today?";

    var res = str.split(" ");

    output:

    How,are,you,doing,today?

    But still i would need it in an array [how, are, you, doing, today?] == this is my desired output.

    I have found a way the split function is built here:

    function CustomSplit(str, delimiter, removeEmptyItems) {
     if (!delimiter || delimiter.length === 0) return [str];
     if (!str || str.length === 0) return [];
     var result = [];
     var j = 0;
     var lastStart = 0;
     for (var i=0;i<=str.length;) {
     if (i == str.length || str.substr(i,delimiter.length) == delimiter)
     {
     if (!removeEmptyItems || lastStart != i)
     {
     result[j++] = str.substr(lastStart, i-lastStart);
     }
     lastStart = i+delimiter.length;
     i += delimiter.length; 
     } else i++;
     }
     return result;
    }
    

    alert(JSON.stringify(CustomSplit("how do you do", ",", true)));

    alert(JSON.stringify(CustomSplit("c$?as$?$?a$cc$?", "$?", true)));

    the code to run is here:

    jsfiddle.net/S5Wy7

    found it here

    stackoverflow.com/questions/24765710/writing-a-string-splitting-function-without-using-the-split-method-in-javascript

    Unfortunately it is not granular enough, because it uses a different function, namely:

    str.substr(i,delimiter.length)
    
    

    I got stuck looking for a way to build a granular str.substr().

    However, maybe there is an easy way to split a string by whitespace separator and put it into an array in construct?

    Please help!

  • Maybe make it in a range of seconds. between 0.8 sec and 1.2 sec. Another thing to try is to add wait. Maybe again with a randomly selected value from floor(random( x, y )). I find that when something should be called and does not, IT may mean the code cannot be timely processed and IT does not take effect. Waiting or randomising or both have helped me.

  • I am planning to set up an Amazon S3 and upload a static webpage with a construct 2 exported project. I have never setup Amazon S3, so I could make some mistakes underway. Moreover, I have no idea if Construct 2 game can run on Amazon S3. Does it require some workarounds to make it work or should it work fine?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the video. I had a glimpse of clarity and managed to get unstuck with the second one as well. I posted a screen shot with an answer.

    construct.net/en/forum/construct-2/how-do-i-18/fisher-yates-work-function-148857

Voytek's avatar

Voytek

Member since 19 Jul, 2016

None one is following Voytek yet!

Trophy Case

  • 8-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies