edsonkirchhof's Forum Posts

  • 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?

  • Try Construct 3

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

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

  • Why aren't my colors accurate when I put them in the font sprite?

    I'm trying to use the font sprite to put the name of the buttons, and when it's selected change the color, but it doesn't have the precise pasting that I define

    does this function work correctly?

    It seems that not all colors are accurate.. or is there a specific way to export source sprite files?

    and about my code, how to fix it so that when I click on the button it changes color, and then goes back to normal?

  • Start with a single mission -

    Gather 20 carrots. Which would then set a global quest tracker to 0 and a global quest target to 20. On completed give 500g - Pick new quest.

    Of course you only have 1 quest so it picks that one again.

    Next you make a 2nd quest. then when ever you finish a quest you pick a quest with a int(random(2)). If it's 0 give quest 1 - if it's 1 give quest 2.

    Then you can make as many as you want and always randomly give the user 1 quest.

    I understand the logic, but how would he understand that he must harvest 20 carrots?

    they are not items..they are seed animations..

  • Took me a while to figure out double click to drop seeds - which meant I lost a lot of seeds. You shouldn't lose a seed until it is planted - when you click on the vegetable in the menu you should just highlight, and then remove the seed as planted.<

    I had replied that I had already tried and I couldn't do it, but I managed to do it after trying harder, so I deleted the post lol

    Problem of losing the seed solved.

    (I think)

    Quality of life suggestions: I definitely wanted hot keys to speed things up. Also, maybe I just didn't know how, but planting more than 1 seed at a time (Like how you can lay soil and water multiple).<

    about the keys, the game is being made for mobile.. so I could implement this if I were going to launch it for desktop

    There's no way to plant more than one seed.. I don't think there's a way to solve this.. only if you change the whole code.. solved.

    Game is missing a draw - why am I planting seeds to get points and money. You can add to this draw with a story that gets played out - or make it very skill based to get faster/closer to a perfect game - or lots of upgrades and insane amounts of money.<

    how can i add missions? Do you have an example of how to configure this? I really have no idea

    Loved the graphics. Very good base product, you just have to take it further. ^^ <

    the sun was good, right? thanks for helping to program it

    I already updated the game on the site, but really the business of doing missions.. no idea how to program this

    https://pocker007.itch.io/fazenda

  • winstreak

    https://pocker007.itch.io/fazenda

    I put the beta version for testing, it's in Portuguese (my native language) but I think it's self-explanatory, could you give me a general opinion about my game?

    I think your opinion is relevant

  • That would definitely help ^^

    It is up to you being the creator - Im just here to help with the mechanics malfunctioning :-p

    When it's published I'll send you to look xD

    Several new problems have appeared.

    but i managed to solve them all xD

    Now I'm going to research how to make the online ranking system..

    Is it possible to add missions linked to play games?

    must be, I'll search

  • There must be an explanation. Maybe you accidentally set a blend mode or something like that.

    I managed to find out, it was the 3d camera object, I don't know what its function is, but I removed it and it went back to normal

    I'm really enjoying the forum, being able to interact and see other points of view on a problem helps a lot

    thanks

  • It works but it’s not very exciting.

    You get the max points with just 6 plants down with no reason to harvest them.

    yes, I hadn't thought of that.

    If the player keeps only one unit of each plant, he already gets the maximum speed of points 6/s

    If I add extra sustainability points when the plant is harvested, that should help, what do you think?

    So he would have a passive and active income from sustainability points

  • it seems that my project is buggy, I made a new layout and event and it continues like this

  • Check that the object and the particles are on the correct layers. Or maybe there is another event which moves the object to the top of the layer on every tick.

    I turned off all the codes, and the problem continues

    no matter what layer I put, it is always spawning under the target object.