Khodex's Recent Forum Activity

  • en.wikipedia.org/wiki/Round-off_error

    Normal part of computing

    Wow !

    Thank you ! :)

  • You can round to any number of decimals, for example:

    Set var to round(var*10)/10 will give you 12.4

    OK, it could be a solution. But why this happens ?

  • Hello C3 community ! I need to have precise variables in my project but I noticed that if I add or substract a float to a variable, there will be a lot of numbers after the comma like in this example : Variable_issue.c3p

    As long as I add/substract an integer, all is fine. But if I add/substract a float, it becomes a mess. How can I fix that ?

    Tagged:

  • I just understood my mistake, I did this change and it works :

  • Hello community !

    I have platforms that can move into water and I would like to create 1 particle for each platform which is going into the water. So, I made this :

    But the result is THIS : particles are emitted infinitely because of the loop and I want them emitted only once per platform.

    In my opinion, the loop is not a good idea or maybe I'm using it badly. What could I do ?

    Thanks a lot.

  • Thanks a lot blackhornet !

  • The lens has a variable instance "EmitsBeam" which is ON when a beam overlap it. It works.

    I tried to create this event :

    When a lens is ON, I try to select a beam with and ID equal to the lens UID and then I used the "PickedCount" to check if = 0 and if so, create a Beam.

    It doesn't work but maybe I missunderstood something...

  • OK lionz I see...

    To clarify, when a beam is created from a lens, its variable instance "ID" becomes equal to the Lens' UID it comes from.

    So, I would like to create an event which says this :

    If a Lens is receiving a Beam AND if no Beam with the same ID of the Lens' UID exist

    Then, create a Beam with ID equal to Lens' UID.

    But I don't know how to check if a beam with a specific variable instance exists in the scene before to create one. Could you help me on that please ?

    Thanks a lot !

  • Hello everyone ! I'm trying to create a sort of mini-game in which a beam is reflected by lenses and it's easy to create the first beams but I don't know why, I have a problem with the "create" action. Indeed, it creates several instances of a beam sometimes but it's not supposed to be the case.

    Here is a link to get the .c3p file.

    The source of the beam is the black triangle in the middle. I can rotate it and I can rotate each lens in order to redirect the beam towards another lens.

    When a beam reaches a lens, this lens has a boolean "EmitsBeam" activated and, thanks to it, the lens is supposed to emit a new beam but I'm totally blocked ! Could someone help me ?

    Sometimes there is one beam emitted from one lens so it's OK, but sometimes no beam is emitted and other times one lens is emitting multiple beams, which is not supposed to happened.

    Thanks a lot.

  • It's exactly what I needed ! Thanks a lot dop2000 !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello everyone !

    I would like to click an object and, by doing so, pick all other instances of this object in the scene to apply an action on them.

    Is there any expression I would need for it ?

    Thank you !

  • Thanks a lot for your answers and for the .c3p file, it is very useful !

Khodex's avatar

Khodex

Member since 6 Sep, 2019

Twitter
Khodex has 3 followers

Trophy Case

  • 5-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

9/44
How to earn trophies