camboriu's Recent Forum Activity

  • > >

    > >

    > > Check my answer in this thread:

    >

    > what answer, and where the thread? XD

    > i need help too

    Change to new forum most have removed the link.

    Found it here: construct.net/en/forum/construct-2/how-do-i-18/how-do-i-add-letter-m-when-num-118349

    Thank you =)

  • Thanks all. I think I'm going to go with celstrider 's recommendation; it seems the easiest for my system.

    Hi, how u do to show K, M etc?

    Can u give me some light? or show me the way XD

  • Check my answer in this thread:

    what answer, and where the thread? XD

    i need help too

  • Thx for help bro, i`l not use percentage anymore XD

    its too complicated to me yet...

    but really thank you =)

    Sorry I used loading progress because I usually use this when loading game.

    You do not need all of those variables only these:

    scorelimit

    score

    scorePCT

    every time you score calculate % by setting scorePCT variable to scorePCT = (score/scorelimit)*100

    and under that another action to set frame of object

    object > setFrame > int(scorePCT/10)

  • > pct = int(loadingprogress*100)

    >

    >

    > someVar = pct/10

    >

    >

    > object . setFrame to int(someVar)

    >

    >

    > Just off the top if my head, as they say, haven't tried it , but it should work

    >

    >

    > or shortened into one line object > setFrame > int((int(loadingprogress*100)/10))

    >

    > prob. do not need both int either

    Thank you, i`l try this.. is some complicated for me yet, but i`l try and send the result here :)

    I do this, i create some Local variables, and defined the value to then...

    but i can`t find the "variable" to create a comparison, i need to make a GLOBAL variable to this??

    Thx

  • pct = int(loadingprogress*100)

    someVar = pct/10

    object . setFrame to int(someVar)

    Just off the top if my head, as they say, haven't tried it , but it should work

    or shortened into one line object > setFrame > int((int(loadingprogress*100)/10))

    prob. do not need both int either

    Thank you, i`l try this.. is some complicated for me yet, but i`l try and send the result here :)

  • Good morning, I'm having difficulty working with percentage, for example I want to change the frame of an object, whenever it reaches a% of a value,

    if it is 10% of the value of the score, I want the frame to be 1,

    if it's 20% of the score, I want it to be 2 ...

    I'm doing this because I'm going to work with "sessions" and each "session" will have a higher score limit, so working by percentage would be the best option ....

    I'm doing this format, (but the percentage is still not working) I would like help for how I can know the value of 10% of my score in this comparison, or some other tip to change the logic.

    thankful

    http://prntscr.com/lqjhw6 if image can`t be opened

    ///-------------------------------------//---------------------------------//----------------------

    Bom dia pessoal, estou com dificuldades para trabalhar com porcentagem, por exemplo eu quero trocar o frame de um objeto, sempre que chegar em uma % de um valor,

    se for 10% do valor do score, quero que o frame seja 1,

    se for 20% do valor do score, quero que seja 2...

    Estou fazendo isso, pois vou trabalhar com "sessoes"e cada "sessao" terá um limite maior de pontuação, então trabalhar por porcentagem seria a melhor opção....

    Estou fazendo desse formato, ( mas a porcentagem ainda não está funcionando) gostaria de ajuda pra como posso saber o valor de 10% do meu score nessa comparação, ou alguma outra dica pra mudar a lógica.

    Grato

  • I would like opinions and help on the "waves" in tower defense,

    for example, I'm thinking of each level having 10 waves, and after the 10 waves go to the next level ...

    and each wave, spawnar X monsters of some types ...

    the bigger the wave the more monsters and stronger ...

    I wondered, how could the part of organizing the "Waves"

    I have no idea how to do something without complicating me later ...

    Has anyone ever done anything like this, or could you give me some ideas please?

  • camboriu

    Thx bro :)

  • can i have the capx too? i didnt see any link or download...

    i have the same problem xD

  • You could make a variable for the day, month, year, hour, minute and compare the last set time with the current time.

    You can get the time and date with ExecJS(Date()), here's a tutorial even on how to get the datetime and you can use expressions to split the datetime and put the day into the day variable, month into the month variable etc. It's all explained in the tutorial https://www.scirra.com/tutorials/940/how-to-easily-capture-date-and-time-and-insert-them-in-a-project

    i used

    Browser.ExecJS("var currentdate = new Date(); currentdate.getHours() ':' currentdate.getMinutes();")

    set text Browser.ExecJS("Date()")

    it works, and show me all xD

    but i no find how to save JUST the DAY/MONTH, to compare..

    if i save Just DAY, will not work, example.. if var DAY2> var DAY1 - do something, else, nothing.

    but when are day 30, and back to day 1( of next month), 30 will be > than 1 :(

    i need to get numbers of month, or how can i do?

    and how i save the Result of the ExecJS in a VAR?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi guys, I'm trying to create a new app in C3.

    Can i make a timer for example, every 15 hours, (need to count even offline) or, for example, save the day in a variable and compare every day if the current day is greater than the previous day?

    but how would I do it on the 30th?

    It will click the button and a message will appear, every day I want the message to be changed.

    If anyone can give me an idea or solution, please ...

    I'm Brazilian, sorry for my english xD

camboriu's avatar

camboriu

Member since 11 Apr, 2014

None one is following camboriu yet!

Connect with camboriu

Trophy Case

  • 10-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies