tarek2's Recent Forum Activity

  • Also, you are targetting (LoopIndex) instead of (LoopIndex"") which is different as you are using the "For" Loop

    And you are using the Array.CurY but you are not using the Array for loop so is not gonna work

    You need to use the Array internal For loop to use the Array.CurY

    If you Post a small Demo just enough to reproduce what you trying to do so I can fix it for you, it will be quicker

    Don't post your whole Project just the vents needed and the assets needed

  • Ok I see now))

    You are still no doing any Picking on the condition

    You are just looping through the Arrays and checking the Arrays Values thats all

    You need to find the way to Pick each "miniature"

    How many "miniature" do you have?

    How do you distinguish who is who, maybe by instance variables? or position? I have no idea yet, thats why I cannot tell you exactly what to do

  • Maybe you posted some events here? that I cant see

    Because you asked

    So it's more like something like this?

    The Pictures are no loading properly today, even mine is not showing off

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • But there is still the problem. It only create on the first miniature.

    As I input a local variable who is the same +1 as the position in the array, it should works, no?

    What I did wrong?

    Not sure what you mean? where? Did you make anything new as I don't see any new events apart from your opening post?

  • tarek2 thanks for your answear,

    So it's more like something like this?

    Because "fini" object only spawn in the first miniature.

    Np

    Yes exactly, That's whats happens when you don't pick on the conditions as Construct doesn't know which object you are referring to so it will Pick the Default one (ID = 0) which is the first "miniature" created

  • Hi

    Use Timers for the "wait" so every Time they trigger move 1 tile to the Angle that is the Next move"

    Probably you need instances Variable too:

    Var "Moves Count" >>> (Type = Number) = 0

    On Timer Triggered

    Sub Event: "Moves Count" < 2: >>>>> Actions Move 1 Tile Right & Add 1 to"Moves Count" & start the Timer again

    Else: Move 1 Tile Down

  • Hi mathie

    I cant see you doing any Picking for the "miniature"

    You need to pick the level miniatures who are done and that match the Array miniature Info that is stored, then you will be able to spawn the "Fini" object on their image points

  • There are many ways you could do it, Maverick already showed you one-way

    Here is another one very basic see if it helps:

    Capx: https://www.dropbox.com/s/af4qgn59jweg8yi/door%20%26%20key.capx?dl=0

  • Yarolus

    Np Glad, it helped

    Yes there is a Function on C3 that can create Probability tables

    The Names is "Advance Random"

    But if it is for just simple Probabilities, you can do it with events too:

    Example:

    Here you have:

    0.1% >>> To Win 1 B Dollars

    1% >>> To Win 1 K Dollars

    99.89 or whatever is left >>> To Win 10 Dollars

    Capx: https://www.dropbox.com/s/jq1vrbf0z5uye8k/future%20events.capx?dl=0

  • newt I forgot to say that I need these events to occur in random time. I have a timeline and I need, for example, "You have won 1 billion dollars" to occur from 2030 to 2050 year. Thanks))

    I think to make it easier for yourself you should set the random Year beforehand so you know when it should happen so you can keep looking forwards to that year

    Example:

    For the "You have won 1 billion dollars"

    Create a variable or store them in a dictionary if you have many events like these

    Create Variable >>>> "Won_1_billion"

    On Start of layout >>>>> set "Won_1_billion" = Floor(Random(2030, 2051))

    Then each year that passes compare

    Current_Year => "Won_1_billion" >>>>>> Run the "You have won 1 billion dollars" Event

    The same for the other events

  • Is not very clear what you are trying to do, can you give an example?

    It looks like you are looking for if there are any "progressbar.ID" that exists that matches the BuildCard.UID and if there is not any then create one progress bar and set the ID to the BuildCard.UID

    Is that correct?

    If yes you can do

    For each BuildCard

    Subevent: "progressbar.ID" = BuildCard.UID

    Subevent: Else = Create "progressbar" and set "progressbar.ID" to the BuildCard.UID

  • Yes but initially I was trying to do that but i could not figure out how to change the direction of the asteroid. I added the behavior "bullet"

    and added the set direction but i don't know what happened.

    jamsch5188

    Normally you will just need to change the Anlge of motion, if it dosnt work you probably have some other events interfering

    Here is an example Spawning at random Y and then change the direction to the Left

    https://www.dropbox.com/s/9u8u3fegovgeqez/set%20bullet%20angle.capx?dl=0

tarek2's avatar

tarek2

Early Adopter

Member since 26 Jan, 2016

Twitter
tarek2 has 12 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies