Governador's Recent Forum Activity

  • Thank you for your help, zeropad it's the JavaScript worked perfectly =D

  • create variable with initial value 5

    every 0.1 seconds --> subtract 0.1 from variable and set text to variable

    variable < 0 --> set variable 0

    it works partially, but when it comes to an integer is so:

    1 2 3 4 5

    I would like to stay so:

    0.0 1.0 2.0 3.0 4.0 5.0

  • Example: I have text box called "cooldown" , to subtract five seconds , it appears that way:

    5

    4

    3

    2

    1

    You want to appear that way:

    5.0

    4.9

    4.8

    ...

    0.5 ...

    Translated

    Thank you =D

  • Nice!!!It worked Perfect here! Thank you for your help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'll try to be quick and to account for the translation !

    I have an enemy called " Zombie " with variable " HP = 100 " , and every 3 seconds it creates 1 "Zombie " in the scenario .

    Each enemy comes with your life bar over your head with width = Zumbie.HP.

    The problem here is that when you kill enemy instead of destroying the life bar of the dead enemy, destroys all life bars of other enemies alive , what I do

  • >

    > > If I understand right, you want an event to happen if number between 30 to 40 is chosen when calculating a (random?) number between 0 to 100?

    > >

    >

    > from what I understand here in translation , that's it!

    >

    For example if you have a variable called "Count" which is set to a some value during the game with different events. And you want to check, if the value is between 30 to 40 during the game.

    You can do this with multiple ways, one is to compare the Count variable on every tick to check, is it equal or more than thirty, and add another condition in to that event to see is it equal or less than 40. In there, you can add the actions you need.

    Hope this helps!

    That's what I was looking for , just put two conditions at the same event "Variable =40 Variable =30 = action. Something simple was more than intrigued me enough, thank you helped me a lot !

  • If I understand right, you want an event to happen if number between 30 to 40 is chosen when calculating a (random?) number between 0 to 100?

    from what I understand here in translation , that's it!

  • I have variable "Draw = 100" to put it away a whole number.

    Suppose out 35

    I want to happen an event between 30 - 40 of the variable "Draw" to do it?

    Unfortunately I do not speak English and the translation must go bad

  • We don't understand. Please add more details.

    ok

  • Example: I'm 100, and I want any value in this period 50-70

    note: is not an random value

    xD thank you!

  • Yes even speak Portuguese , and thank you for .capx is exactly the way I want.

  • I have an object called " Enemy " with variable " Hp = 100 " and another called " Bullet " with variable "Damage = 40 ". When " Bala " comes into collision with " Enemy " subtract - ( bullet.Damage*random (1.5,2) of Enemy HP. How to visualize the damage of this event in a text box ?

    \Google Translate/

Governador's avatar

Governador

Member since 4 Jan, 2016

None one is following Governador yet!

Trophy Case

  • 8-Year Club

Progress

8/44
How to earn trophies