99Instances2Go's Forum Posts

  • Need your capx.

  • Store the value and the date&houre&seconds right before gooing offline.

    When back online, get the value and recent date&houre&seconds and calculate the off time.

    Set value according.

  • Then on Construct's side nothing is wrong. Your Firewall is not blocking.

    Remains some IT questions. Like, is the PC part of a home group. Is network discovery enabled ?

  • system > for

    Name = "i"

    Start= 0

    End = Array.Width - 1 (width = size on X-as)

    i = in the expresision loopcounter("i")

    element = Array.at(loopcounter("i"))

    OR

    Array > condtion 'For each element X'

    element = Array.CurX used as an expression

    or use the condition 'Compare current value'

    to know 'i' is not needed

  • If I put "Wait ____ seconds" in a loop, why does it NOT wait?

    They wait. Exactly as they are supposed to do. Not as you expect them do to.

    Lets slow down the loop. At 16h00 (step 1) it commands: wait 10 minutes. At 16h01 (next step in the loop) it says wait 10 minutes. At 16h02 (step 3) it waits 10 minutes. So at what time wil the wait be over?

    For step 1 at 16h10 (10 minutes later then 16h00), for step 2 at 16h11, for step 3 at 16h12. Or 10 minutes later then it gets called.

    Lets speed it up. Lets assume that there is virtual no time between two steps. So what happens ? It waits 10 minutes, and then all the waits are over at the same time. After 10 minutes it fires them all at once.

    I gave you two ways to do this in you original post.

  • Create a Every X seconds condition. Set X to you liking.

    Bring the creation blok as a sub under that condition. So:

    Condition every x seconds

    Sub condition repeat 10 times

    Action create the objects.

    Or, use a timer. Give any object a timer behaviour.

    Condition:

    Trigger once while true

    Action

    'any object' > start timer > X seconds > tag "wave"

    New condition

    On timer "wave"

    repeat 10 times

    action

    create the objects.

    If you only want to create 1 object each time, lose the repeat.

  • Add an event

    Pet > on selection changed

    Action

    food set selection to zero

    If you dont have acces to familys, you have to make this action for every list.

    Else, bring em into a famely and then Famely > set selection to zero

  • What would one do with the knowledge of the IDD (the index of a certain object in the list of picked objects) when all objects are picked ?

    Certainly when calling a funtion. I suppose the function gets called from a situation where there is certain picked object list. And one wants the IID of that object in that specific list. There is not one correlation between the picked list (and its indexes) in the event with the function call and the picked list in the on function (all and theire indexes when picked all).

    Just pick the instances (or objects with a famely) you want to pick. (make a picklist)

    Run trought them with a for loop

    Pick the instance by its IID (pick nth) = loopcounter

    This instance has an UID, but that is not importand now at this moment yet

    Set an instance variable to the IDD or to the loopindex

    Now you can pick any instance with an UID, its IID is in the instance variable.

  • What granpa says is this: you can only run this once. At the moment it runs every tick.

    The events (roughtly) run top down. When it comes to the end, it starts again at the top. One time top down = 1 tick.

    So, your creation block runs once, the system starts again on top, it runs again (making more objects), it runs again and again and again, in fact it never stops.

    One way to make that event run only once is to make an 'on start of layout condition' (under system) and bring whole that creation blok as a subevent under that 'on start of layout'.

    An other way is to make a 'Trigger once while true" condition. And bring whole that creation blok as a subevent under that.

  • First Question.

    The preview on the PC, what is the adres in the adresbar ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well besides that, you can pick arrays as any other object. You can also give an array an instance variable to identify it, as you do with other objects.

  • Because they have the animation speed set to zero in the sprite-animation-editor.

    And they use a dedicated sprite with 1 frame of all the items.

    If your animations keep gooing after you told them to stop, then you are including the inventorum events sheet into a game sheet where you tell them to animate, or something close to that.