MegaMente Br's Forum Posts

  • I see what I can do...

    Estou vendo o que consigo fazer...

  • Someone? At least can give a hint? Or any suggestion??

  • I created a game with a team system, but "the system isn't too smart". I am trying to make the game balanced with 5 players in each team.

    Here is what i did until now:

    - Player Create or join a room.

    - when he/she joins a game it randomly pick a team color and spawn at the team color, etc...

    - But it don't have a limit... if everyone want to be the same team by re-entering the room it will be possible... how do i Fix that? I am almost thinking in a way to do it, but i can't figured it out yet.

    And also, i am trying to make a Custom Room, where the player select the number of players on the team in general like: 3 players, or 5 player for each team.

  • Oohhh It worked totally perfect! Thank you! Thank you so much! You are so intelligent! I think I could never do this! You saved my life <3! (Not literally I was not going to die)

  • How do I make an Anti-Swear System (or A.S.S)? An project example can be even the chat room example, I wanna test if any word in the Textbox before the user send it and check if its a swear or not, heres what I did until now:

    My code simplified:

    Ajax Realtime database > (Swear words in .json) >>

    On Ajax(done) > Dictionary reads every single word and creates an single key for each one ---- [Works Totally Fine]

    Problem:

    I need to check in the text box as i said before, i already tried:

    On Function ("AbleTo") >

    System: findCase(lowercase(function.param(0)),dictionary.currentvalue x= 1)

    Dictionary: For each key

    >> (If not found return if a function that ables to send the message) [Don't work]

    Thank you!

  • I will see what I can do... Yes Mikehive understood what I am trying to do

    Thanks you two anyway!!! :D

  • Here is what I am trying:

    The user gonna type some words in the (Text Box) and than certain words will have different colors

    E.g.

    Banana will be yellow

    Apple will be Red

    //// I have the Rex bbcode plugin

  • Ok, I will try my best... Thank you for helping! I will tell what will happen! 👍

  • I want to make a "wise layout"

    I will load some info and create some conteiners, something like a Virtual Store, you search for a game name and appear a list of games that you searched for in a conteiner: texts and sprites.

    But I am afraid that sometimes the layout will not be big enough to have all the games, how I do it infinity?

    Sry my bad English

  • Basically what i am trying to do is:

    What already done:

    _________________________________________

    Ajax my Realtime Databases and request info ( works fine)

    _________________________________________

    .

    Ajax LastData output will be like:

    "Json": {

    "Apple":"Red;Small;Delicious;Water;Green;Big"

    "Banana":"Yellow;Small;Big"

    "Watermelon":"Water,Red;Delicious;Big;Giant;Green;Seeds"

    "c2dictionary":"true"

    }

    .

    __________________________________________

    .

    And a Dictionary will load (Works fine)

    What I need:

    I will text a text on the textbox like (e.g. Water) and compare if the dictionary in one of it keys have the value "Water"

    And then call a Ajax using each key that have the word "Water" Like:

    Ajax: Tag:"load" // url: MyDatabasesUrl&"/"&Dictionary.currentkey&".json"

    .

    .

    Sry my bad english

  • I Found the solution!

    Everything I have to do is to add an "Trigger once" event (Trigger Once event don't seen to work by the way)

    Can be like a function or something else:

    (event)► On Start Of Layout»

    (sub-event)►►tokencount(text," ") » Set Text: tokenat(text, loopindex, " ")

    Thank you sooooo much!! If some day some how my program become famous i don't will forget you!

  • Try Repeat tokencount(text, " ")

    Find tokenat(Text, loopindex, " ") within the library => display results.

    You helpped my a lot! I figured out what i did wrong. But, well i think I miss something

    Look my output:

    Search » An Apple is Red

    Output » AnAplleisRedAnAppleisRedAnAppleisRedAnAppleisRedAnAppleisRed(Repeat)(Repeat)(Repeat)......

    what was expected:

    » AnAppleisRed

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok it worked 50% as i expected, but you helped me a lot, i didn't even think how to write this code before.

    I made everything like you said

    Here is my output:

    "The" "Birds" "Are" "Flying" "In" "The" "Sky" "The" "Birds" "Are" "Flying" "In" "The" "Sky" (Repeat) (Repeat) (Repeat) (Repeat) .....

    Why they still repeating?

    Edit 1:

    I found the solution...

    I need to put an trigger event:

    ~ On start of layout:

    ~~repeat tokencount(text," ") = tokenat(text, loopindex, " ")

  • I Think C3 already have an plugin in it named "Share"

    Are you having issues with it or you just didn't know about it?

  • I need the system to split a string into text like this:

    "The birds are flying in the sky"

    To become:

    "The" "birds" "are" "flying" "in" "the" "sky"

    There is any regex that can be useful?

    Sry any grammatical error...

    Tagged: