klabundee's Recent Forum Activity

  • Why? Are you using third part plugins?

  • Dictionary.Get("te2")+Dictionary.Get("num")+ceil((Dictionary.Get("1")+Dictionary.Get("3"))/10)

    In your example you were dividing "3"/10 before add with "1"

  • Awesome.

  • Actually, int(random(10,21)) with give you values from 10 and including 20.

    Indead.

    int() and floor() works the same in this case, it round down int(5.6) = 5, floor(5.6) = 5.

    You can also use round(x), it will round to the closest integer number, round(5.6) = 6, round(5.4) = 5.

    round(random(10,20))

    :)

  • Hi, so I'm making a game, and I'm wanting the price of an object to randomize from let's say 10-20. but when I do so, it gives me a decimal, which I don't want. Please help!

    int(random(10,20))

  • Does the ship have more than one sprite frame? Does it have independent colision points on each frame?

    Try using a new invisible sprite that pins on your ship and this one has solid behavior and no animations, just a single frame.

  • > I would suggest having a column on the array to store if the question could repeat or not. This way you can control which question could repeat.

    >

    > Just store 0 and 1 on a new column, and when this question apper on screen, compare if this column is = 0 if yes, remove this question from array, if 1 just keep it for next random.

    klabundee can u show me an example of it, please?

    Yes. In the same example as I sent before, I just added a new column, and it stores 1 and 0. When it call for a question, if the column value = 0 it will remove the question/answers from the array.

    Here:

    mega.nz/file/98ABQKKZ

  • True but following your screenshot you still are setting the Hovered variable to true/false and calling the function every frame.

    I think that you need to compare LastHoveredValue here, not inside the function.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I see.

    I don't think that you need 2 booleans to compare, or maybe I'm not understanding it correct.

    If you remove "LastHoveredValue", doesn't it work same way?

  • yes but, cant you just set the action on Cursor is over?

  • So this is my setup:

    If I were doing this in javascript, i'd have a condition after those two like so:

    > if (this.Hovered != this.LastHovered) {
    // Do Stuff
    }
    

    How would I replicate this comparison as a condition?

    I thought it was an instance variable. Try condition: System -> is boolean set

  • I'm new to Construct 3, but are you suggesting that construct doesn't support comparing one value against another?

    No, Im saying that C3 probably not allow to compare a value (string, text, number) to a boolean (flag).

    And that C3 has a condition to compare if the boolean variable flag are true or false.

klabundee's avatar

klabundee

Early Adopter

Member since 26 Nov, 2015

Twitter
klabundee has 6 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • 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

14/44
How to earn trophies