Voytek's Forum Posts

  • Great! I am looking forward to that! I hope you will bring balance and calm my obsession by making it work the way it is in the game!

  • I admit i installed some addons for various projects. Nevertheless, "Addons free" construct 2 that i have just installed on another computer requested only "move to" and "push out solid" addons. I suppose two is not that many. While "move to" might not be relevant, Push out solid seemed to me to be crucial and is used in the events. Therefore two addons is not that many in my opinion. Even God in many religions has three forms. According to the alert i received, i have not exceeded the "holy" number.

    I have not attempted recreating the bendable effect and any other special effects.

    All i want to have is

    1) cell splitting that do not overlap with each other while they do overlap with the enemies. (i did that with bullet behaviour but the cells unexpectedly self anihilate, i did that with push out solid but when there are too many cells, they still overlap or "get trapped").

    2) cells merge with each other after a while.

    3) all that in the moving motion that is also flexible i.e some cells seem to move a bit faster at times.

    Basically the problem i encounter is an overlapping prevention for the cells, while they can still overlap with other enemy cells.

    I did a thorough research on the forum and there have been some attempts to make a "relative overlap" while moving but no one succeded as far as my research is concerned.

    It could be that some clever math has to be implemented but i am clueless where to learn how to implement it.

    I think the agar.io functionality might be problematic in a sense of not being straightforward, because there are some youtube tutorials on how to recreate growing and shrinking (even in a multiplayer fashion). However there is none on the essence i.e multiple cell splitting while following mouse movement without overlaping for the player while allowing overlaping with the enemy.

    Perhaps agar.io surcecode could be helpful but getting it seems dubious.

    Perhaps i shall post images of my events.

    I appreciate any hints or even better, the solution itself.

    It has been driving me crazy. I literally spent three months trying to figure it out.

    Thanks in advance!

  • Here are my attempts for recreating the essenial Agar.io functionality. None of them works as should. I have spent numerous hours trying to make this work. Here are the best results possible. I begin to doubt if it can be done at all. Perhaps a programming background is needed.

    Check out my capx and please improve on them. Let's make agar.io clone. This would be something as there is not any "playable" multiplayer tutorial made. This would be the ideal result.

    Can agar.io be recreated?

    Can you improve on my attempts. Share capx if you can!

    Ps: I might have gone little wild while making the events in some of my capx. Please don't hold it against me. I have been trying hard to push the idea into practice no matter what!

    Copy the URL from between " ". I could not post it any other way.

    !@!#$!@$" dropbox.com/sh/xm3yui69q09rxez/AADJMd_xnEo6AQ8vXt_OSJ7Pa?dl=0 "!@!#$!@$

  • This is truly grandiose! Animmaniac, thanks so much for your superb contribution. I would never come up with anything close at this stage of my programming development. My skills are a “baby tiger level”, therefore thanks for being such a benevolent beast! This will allow me to learn and grow. Hopefully i will match you someday!

  • You nailed it! What a blast! I hope I will level up to match you someday as what you have done is so cool! I am so thankful that a higher intelligence of yours wandered into my initial post : ) Now I will do my best to get my head around your glorious creation, which should be so much easier. Just to let you know that I attempt to recreate some duolingo.com functionality. I believe the algorithm sets me on the right way to do it with Construct 2. If you don’t know duolingo, check it out if you like learning “spoken” languages. Feel free to follow me there: “wpwojtek” if you wish. There will be a party tonight. Look up the sky, there will be a shooting star for you : )

  • i will keep my fingers crossed, i hope you will fill it with your intellectual benevolence so that construct 2 becomes impregnated with a glorious result!

  • I also do not send everyone, who has come to the party, home only because some invited people did not show up.

  • Rhis texy ia aqesome, definitely does not pass the threshold

  • Thanks for the caps and your kind contribution, i will view it shortly.

    What i mean by "the comparison threshold" is this:

    Model:"This text is awesome"

    User Input:"This next is awesome"

    Threshold: only one typo thus the comparison passes the threshold

    Model:"This text is awesome"

    User Input:"Thisnext is awesome"

    Threshold: only one typo + lack of a "space", thus the comparison passes the threshold

    Basically i would like to be able to accept lack of spacing and perhaps "natural misspellings" like cat vs xat, hero vs gero, dark vs sark if that is possible.

    Examples of something that would not pass the threshold:

    This ext iawesome"

    Threshold: missing "t", missing "s", missing "space", thus too many mistakes, comparison does not pass the threshold.

    In a sense, the threshold is a measure of comparison acceptability despite some mistakes but not too many. Party metaphor: i do accept some gatecrushers. However too many gatecrushers spoil the party.

  • [SOLVED] Can someone demonstrate how Levenshtein distance can be translated into Construct 2?

    What i want to achieve is the following:

    1. I would like to have an array of sentences.

    2. The user is supposed to enter one sentence, one at a time, and this sentence is meant to be compared with a correspoding model sentence stored in the array. No need to search through.

    3. It is anticipated that the user will make some typos while entering the sentence. i want to allow such mistakes to happen like this:

    Model sentence: "This text is awesome"

    User input: "This next is awesome"

    Result: comparison accepted.

    It would be good if i could set the comparison threshold.

    Taking all of the above into consideration, i have stumpled upon multiple times on this code below. I believe it could do what i want. Sadly i am not smart enough to translate it into construct 2. Can someone do it and help me achieve the goal described above?

    // Compute the edit distance between the two given strings

    exports.getEditDistance = function(a, b){

    if(a.length == 0) return b.length;

    if(b.length == 0) return a.length;

    var matrix = [];

    // increment along the first column of each row

    var i;

    for(i = 0; i <= b.length; i++){

    matrix = ;

    }

    // increment each column in the first row

    var j;

    for(j = 0; j <= a.length; j++){

    matrix[0][j] = j;

    }

    // Fill in the rest of the matrix

    for(i = 1; i <= b.length; i++){

    for(j = 1; j <= a.length; j++){

    if(b.charAt(i-1) == a.charAt(j-1)){

    matrix[j] = matrix[i-1][j-1];

    } else {

    matrix[j] = Math.min(matrix[i-1][j-1] + 1, // substitution

    Math.min(matrix[j-1] + 1, // insertion

    matrix[i-1][j] + 1)); // deletion

    }

    }

    }

    return matrix[b.length][a.length];

    };

    source page of the code: gist.github.com/andrei-m/982927

  • Thanks Chad for all your effort and the caps. At the moment of writing this reply i have not viewed them yet but i definitely will. Good luck on your exams! Up unti now, I have been trying to implement Animmaniac's suggestion. Unfortunately what i managed to come up with is pretty miserable. I could not turn the code into "neat loops" and i cannot imagine how i could possibly come up with all the possibilities of user typos in the "pre-processing" procedure.

    Here is my "production":

    Could anyone improve the code, help me learn as well as get this thing done while following Animmaniac's suggestion?

    One question is bugging me a lot, namely: how to divide the user input into the pairs to compare? I assume that user input is stored in the Array2. I hope i did not get what Animmaniac suggested at the wrong end. Anyway I am sorry if anything i have done/written is retarded. I am just an aspiring programmer.

  • Thanks Chad for your reply, i really appreciate it!

    With reference to: "Well, I think what you are trying to achieve here is a game that analyzes the user inputs if they have a typo and the input is close to the required text then it will accept it." Yes! this is exactly what i am aiming at. You are on the same wavelength with me on this.

    With reference to: "If you are asking for a .capx file, I'll be glad to make it for you, just say the word." Yes, I am humbly asking for the .capx file. I will do my research on the methods suggested by you but having a solution handed would make me sleep better Therefore, I will greately appreciate your .capx contribution. I am only a strong beginner in javascript programming and in construct 2 programming as well. It will be something new to learn for me. Thank you in advance.

    By the way, i have anticipated someone suggesting using so called "regular expressions" and i am moderately happy there is something neater than getting my head around the "elusive" regex.

    I am looking forward to your next relpy!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there a way to compare two String values in the form of sentences so that the end result of comparison would accept "natural" typos or some typos within some measure like this?

    Model string stored in the game code: "I like cats"

    User input: "I like vats"

    End result: comparison accepts user's typo. Eventually there is a match.

    I would like to make a game with a lot of sentences like this. I hope there is a way to achieve this as easily as possible. Please help, i think this is a tricky one :/