edsonkirchhof's Recent Forum Activity

  • I made a touch based farming game to do the actions, and now I want to replace that with a character that interacts with things

    I'm trying to change some things, I inserted a character in 8 directions, and I need him to interact with the places to plant. water, paste, etc.

    The problem is that it doesn't work properly.

    Can anyone show me a way?

    this is the game i made

    https://edsonkirchhof.itch.io/fazenda

    I recorded the attempt to put the character with the controls on the screen, and such, but I don't know, it's all weird, buggy

    Subscribe to Construct videos now
  • You got it?

  • what is the most common way to create a system of transition between areas?

    I have the plantation area, and now I want to add the animals area

    what is the best way to do this? using layout? or..

    it ends up losing the settings..

    what is the best way to do this? bigger layout and zooming in areas?

    switch layers?

    https://youtu.be/7RZeiLJ7vKs

  • How do I organize my code to get only the top 10 scores?

  • As for the inappropriate words, you'll have to filter them out somehow. This has always been a little bit tricky, as people like to get creative with stuff like A$$ or A.S.S and such. Also you have to avoid filtering out common words like ASSemble just because they contain a no-no word. There's probably some libraries out there (https://www.npmjs.com/package/bad-words) or javascript code (https://stackoverflow.com/questions/56456144/javascript-simple-profanity-filter) but ideally you'd do that server-side and not client-side.

    And for sending scores every second, it depends a little on how the game is designed. But if you could e.g. only allow to send the score if it's a new highscore. Or there is some kind of timeout. Or it's only possible to send the score after a finished game.

    is there a way to log in with a social account to save the ranking? facebook example

    then I would get the person's facebook name

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I made a code that sends and receives firebase data, according to the score, but how to prevent users from putting "inappropriate" words as name? and that they keep sending scores every second?

  • rgb(int(tokenat(cor_padrao,0,",")), int(tokenat(cor_padrao,1,",")), int(tokenat(cor_padrao,2,",")))

    I already solved it, the expression was incomplete, thanks for giving me the path to what I wanted

  • variable 1 (string) = "255,50,100"

    Selection = 1 > spritefonte1 set color rgb(tokenat(variable 1, 0, ","),tokenat(variable 1, 1, ","),tokenat(variable 1, 2, ","))

    etc.

    The rgb values are stored as tokens in a string, separated by ",".

    Rather than setting the colour to rgb(255,50,100) or whatever it is, then we get token 0 = 255, token 1 = 50, token 2 = 100.

    why doesn't it work?

  • > What I want is to be able to change the RGB variables in just 1 field, and he can set the others, you know?

    Sure if you have fixed your issue and that's what you wanna then all good.

    Example:

    If selecao is = 1

    Then all these 4 events will Run:

    If you are happy with that then all good if not then you will need to change your events, if you need help in changing the events then you will need to provide the logic that you were thinking of doing so someone can help you in changing them.

    I want to do that:

    variable 1 = rgb1

    variable 2 = rgb2

    Selection = 1 > spritefonte1 set color variable 1

    Selection ≠ 1> spritefonte1 set color variable 2

    Selection = 2 > spritefonte1 set color variable 1

    Selection ≠2 > spritefonte1 set color variable 2

    Selection = 3 > spritefonte1 set color variable 1

    Selection ≠ 3 > spritefonte1 set color variable 2

    etc..etc

  • > The code part works fine, but the color doesn't seem to be accurate.

    >

    >

    >

    >

    > like how do I make everyone set as a reference to another, like it's a single variable, which controls all the colors, so if I want to change it, I'd only need to change it in 1 place

    Also, you need to put an else in all the events after the First Event "Selecao = 1"

    or you will have issues with multiple events triggering in the same tick like for example:

    If selecao is = 4

    Then all the events below will trigger:

    -selecao is not equal 1

    -selecao is not equal 2

    -selecao is not equal 3

    mm now that I'm thinking even the else it will not help if you just wanted to trigger the "is not equal 4" alone as the first "is not equal 1" will trigger first and skip the other events below, I think you will need to change the logic unless you want to trigger three of them at the same time.

    What I want is to be able to change the RGB variables in just 1 field, and he can set the others, you know?

    save the code in some global or instance variable, and make the menus pull this variable

    so i could change my game color theme very easily

    -

    about white, I was thinking that, but I was too lazy to change the sprite fonts, but dps I do

  • rbgex() uses 0 to 100, you need to use rgb() which supports 0 - 255.

    It looks better, but the color doesn't look very accurate.

    how can i save a color code in a variable or something?

  • The code part works fine, but the color doesn't seem to be accurate.

    like how do I make everyone set as a reference to another, like it's a single variable, which controls all the colors, so if I want to change it, I'd only need to change it in 1 place

edsonkirchhof's avatar

edsonkirchhof

Member since 3 May, 2022

None one is following edsonkirchhof yet!

Trophy Case

  • 2-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies