MegaMente Br's Recent Forum Activity

  • I see what I can do...

    Estou vendo o que consigo fazer...

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

MegaMente Br's avatar

MegaMente Br

Member since 4 Nov, 2020

Twitter
MegaMente Br has 2 followers

Trophy Case

  • 4-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies