Majinboo's Recent Forum Activity

  • I read the FAQs, I understand partially the arrays, i read the tutorials, but i cant find in the forum a capx example or question of how to save value in an array in a current action over object, please check my events or capx and please teach me how to do this correctly, i want to spawn 2 objects (of value 0 in the array), show some values in text object, save array info, after 2 objects are destroyed then spawn another 2 objects, please check comments in capx .....

    capx

    http://www.filedropper.com/arrayspawnandsetvalues

  • "mont or monta i cant get correctly the value "mountain" " -> because you need at least 75% of the letters of the target word.

    UPDATE: after an hour of trying i found how to write complete words, i just disable global variable wait

    I am testing now the friction, i think auto completion will works ok, how i can make the auto completion system?? please if you have a good tutorial for newbies or something... i want to learn mainly, i am trying to understand your code in comparinvg capx.

    I designed this capx to test the friction.

    http://www.filedropper.com/comparingv4

  • Levenshtein distance is the number of operations/edits you need to do, to change one word into the other. The regularly used weighting is:

    1 for substitution (example: 1 wrong letter typed)

    1 for deletion (example: 1 letter too much)

    1 for addition (example: 1 letter missing)

    So you could say you allow 1 typo in the word, then for red stuff like this would be allowed:

    reed, ret, rad, rwd, rd, ...

    Of course you could make it reliant on word lenght, so for example forbid typos in short words, but accept one or two in longer words.

    Word suggestion is something different and would use a dictionary, preferably one which knows the frequency of words in common usage, to suggest the most frequently used word(s) that begin with the typed letters.

    Would it not be a problem in your game, if autocompletion is too strong? (it could get weird for the players if all they do is write out words half-way and then the next task already comes up)

    isn't a problem because if i have for example two sprites objects ( mountain - mouth ) my players can see the objects and they will know before they write the meaning of the object, they will write moun or mout and they will get the word instantly in the text object / sprite font, and they will see of course the complete word for 0.5 or 1 second in the text object so they will know that they wrote the correct meaning, with this method i remove a lot of friction in the game, of course if i don't have objects visible in the layout with similar letters then they will only need to write for example mo and they get instantly the word mountain.

    Another example the words power / flower , if two sprite objects exists in the layout with this words, of course they will need to write the po or fl character, this will be a anti-friction system, if the player don't know the meaning of the sprite object they will give up or write incorrect meaning.

    If you see an Apple Sprite Object you will write ap and you get apple instantly, you prove to the game and yourself that you know the meaning of the sprite object, in the game this is enough to prove your knowledge otherwise if you write the wrong meaning for example ora because you think that the sprite was an orange then i can set a message in the text object like wrong meaning if none of sprite objects in the layout contain the letters ora, then the player need to write again the meaning, so with this anti-friction system you can get good answers and bad answers at the speed of the light, and its enough to prove the knowledge of the player.

    I am testing with your comparingv3.capx , 3 letters looks good, however i think auto completion cause more friction than the actual system because the player must write the word and wait to see the complete word in the text object, the auto completion must be maybe in the variable but not visible in the sprite object, then you know that you can write the first 3 letters of the word or the complete word but with mistakes and you get the correct answer, the bad of the actual system comparingv3.capx is that if you write a wrong word and the sprite object with the wrong word don't exist then you need to press back space to clean the text object to try again, this cause friction, to remove this friction i need that if the player write the complete wrong meaning or the word dont have letters of any sprite object visible in the layout then they get the text object clean very fast.

    The actual system comparingv3.capx isn't precise because if i write mont or monta i cant get correctly the value "mountain" then i need to write again the meaning and this cause friction, the players needs to know that they only need write the word partially correctly or only the first 3 letters to get the answer good, some lazy players will write the first 3 letters, other players will type fast the complete word but they don't need to worry about typo mistakes, i think you understand my point, remove any friction in the game and then you can have a rain of sprite objects, you only need to write the meaning without friction.

  • copy.com/uYqaoQi11F4wquXg

    I still dont really get what you want to achieve with this. If you want to compensate for typos, then it would be better to employ levenshtein distance.

    Thank you again for your help!! , i was reading about levenshtein distance, i saw your .capx here ( ), with levenshtein distance you can replace or suggest words?

    For example you started to write -> ap and then in the text object or sprite font you get very fast the word-> apple ? before you write the complete word?, your .capx show me levenshtein distance value but i dont know how to implement it.

    I am trying to find .capx examples in the forum about compensate for typos but i cant find anything, i think this is hard to made by me .

    I just want in my game that the people dont have to worry about write the complete word or partial wrong word and dont waste time writing complete words, for example you can write mou and you get very fast the word mountain in the text object or sprite font or if you write ineap you get very fast the word pineapple

    However if i have Sprite Objects in the layout with the two words mouth and mountain then you need to write moun to get the word mountain or mout to get the word mouth but only if you have two sprite objects in the layout with similar word.

    The difference with comparingv3.capx is that with levenshtein distance system you only need to write "ad" and you get instantly in the text object or spritefont the word "advertisement", instantly set var1! and after 0.5 or 1 second clear the text object to write the next word.

    You are very smart, you understand more what i want that I myself, I'll be very grateful if you help me with this.

  • Nvm, understood it... I think.

    https://copy.com/EjoQsnxgYyJL1DYK

    like this maybe.

    it ignores upper case letters, and for each lower case letter it tests whether it matches or not, ignoring order. Then you get a number of matches and non-matches.

    Thank you so much!!, without the help of this community i think i had given up, i spend the whole day trying to modify your code to use spritefont and text object but i cant do it <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad"> , on text changed dont exist in spritefont / text object, i dont know why i cant understand this, how much tutorials i need to made to be a pro like you? lol.. please help me to fix this, i tried too to destroy objects that you wrote the correct value but didn't work too.

    http://www.filedropper.com/comparingv2

  • Its possible to do this in construct 2? i want for example use Compare variable or Pick by comparision, i want to skip UPPER CASE and if the string match 75% of letters then the value will be correct, for example variable 1 value: PineApple , if my other variable 2 its pienaple then my value will be correct.

  • > No Programming Required!

    > You can now make advanced games without writing a line of code. Construct 2 does the hard work so you don't have to.

    >

    >

    ArraySpawners.capx

    Thank you so much for your help! you saved me again!! i will read about loops!

  • better edit your post and put the URL without http or www, for example: dropbox . c o m /urlpath

  • I read a lot about arrays, but i still cant understand some things, i just want to create 10 enemies (same sprite) with different values (from array) each minute but only those with value 0 in the array, and when my enemy its created then set values from array (of 0 enemies) to variables, i tried this but i cant understand why didn't works, if i have 50 items (with value 0) in the array then each minute i will spawn 10 sprites (each one of the value 0) and each sprite will have the values of Y, after each sprite is destroyed then the value of the array will be 1 then the enemy didn't spawn anymore, please help, i am still reading but arrays are so hard.

    I want to spawn 1 orange, 1 banana, 1 tomato and 1 carrot because they have the 0 value in the array, after i destroy each one then no enemies left to spawn, imagine if i have a big list of 50 items in the array with the 0 value, well i want to spawn 10 each minute.

    This events are an example but i tried a lot of different things, i tried this time using a capx example but this example dont use strings, i cant find any tutorial or example with strings, i tried to replicate all the events and i get this error:

    String its a text value, i cant find in the forum how to use strings with array.at :/

    <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad"> , i spend the whole day reading about arrays, searching in forums and reading tutorials, i just give up, if this is hard i cant imagine how real programming will be.

    My Capx:

    http://www.filedropper.com/arraynightmare

  • thanks a lot for the help, this exactly what i want: , but i need to solve the problem of count "outside time", i will try with rex plugins.

  • Its possible to count "outside" time in construct 2? for example if i kill a type of enemy i want to see this enemy again in 2 hours (outside time, not in game time) and other type of enemy in 1 hour, you can close the game and save progress before 15 minutes of playing but the next time that you open the game if your enemy have more of 2 hours dead (outside time) then the enemy will spawn again, i know construct 2 can count in game time but i want to know if construct 2 can count "real or outside time", i think must be something like: last saved game "time / date" + last login hour/date.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Text file=>Array=>Instace variables

    Monsters.capx

    Thank you for your help!! because i am dumb in programming i just use this tool: http://www.textmechanic.com/ to transform my .txt file to the c2 json format then i will understand more my code in construct 2, i will read now a lot of tutorials about arrays to try put the values of the array in the variables, thanks for your capx example, now i can understand more how to do this.

Majinboo's avatar

Majinboo

Member since 21 Jun, 2015

None one is following Majinboo yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies