99Instances2Go's Forum Posts

  • Is this what you tri to do ?

    https://drive.google.com/open?id=0B1SSu ... HFhenRybE0

  • Old problem. You are not alone.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Many ways to do is. Not necensary using 'bullet'.

    Depends on what exactly 'position' in 'when he arrive to a given position' means.

    A certain Y ? Easyer to use the MoveTo plugin.

    When colliding with an underlaying object ? Easyer to use the platform behavior.

    Or many other ways. Just need to know what exactly that 'position' means. Let me know and i make you an example with 1/6 of the code you use now.

  • Line Of Sight can not see the origin of an obstacle when that origin is inside the collission polygones. (you made the red one solid, and solids as obstacles).

  • Excuse me mu dumbness (again), suppose you wanted to compare each element against each element.

  • Suppose 'ampm' = "PM"

    So ...

    If 'scavengerreturnAMPM' = "PM" it sets it to "AM"

    Now it is "AM" and the next condtion is true, and it will always be true.

    In that next condition it always sets the 'scavengerreturnAMPM' = "PM"

    Next tick 'scavengerreturnAMPM' = "PM", and is always "PM"

    And it starts all over.

    Need to use 'else'.

  • Oh and ... i had troubles with the plugin when ...

    I changed its name (changing the name back did not solve it, had to start over)

    i pinned to small numbers in the propertys

  • This plugin has a behavior and a plugin. You need both.

    Need to associate the behavior with the plugin. Here is an example that i made for some one else.

    Here is a way to find solid working paths in tight places & move a player in tight places.

    https://www.dropbox.com/s/m3ypzxx77f436 ... .capx?dl=0

    Need those plugins.

    viewtopic.php?t=68958&start=0

    behavior-moveto_t63156

  • Why would an array not help ?

  • Ha ! oosyrag now that is clear, where was you when i did exactly that thing ?

  • Yes and no. No for really subkeys. Better use an array ?

    Yes for a nice workarround. Use tokenat.

    Store something like this in the value = "/"&str(hp)&"/"&str(attack)&"/"&str(defense)&"/"&

    (assuming hp, attack & defense are variables)

    Retreive this way

    hp = int(tokenat(Dictionary.CurrentValue,0,"/"))

    attack = int(tokenat(Dictionary.CurrentValue,1,"/"))

    defense = int(tokenat(Dictionary.CurrentValue,2,"/"))

    (or Dictionary.Get("key") in stead of Dictionary.CurrentValue)

  • That is possible. But it will take some coding.

    Say you have a boolean that is true when things are in pauze.

    So,

    when the boolean is true (+ once while true condition) you store the Timer expression .. Duration(tag) in a instance variable. The time you wanted to go minus the Duration(tag) = the remaining time.

    When the boolean is false (+ once while true condition), restart the timer with the remaining time.

    Now, its the gravity thing that keeps you from just timescaling. When you can timescale, the timer just pauzes and picks up where it was.

    • You can not use 'wait' like that in a 'for each' loop.

    ExistENactual is zero for 10 seconds. Wich will not get a value for 10 seconds.

    • You made a nested loop. Say the 1st array has the values (1,2,3) and the 2nd the values (4,5,6). Because it is nested it evaluates like this :

    1 = 4 ?

    1 = 5 ?

    1 = 6 ?

    2 = 4 ?

    2 = 5 ?

    2 = 6 ?

    3 = 4 ?

    3 = 5 ?

    4 = 6 ?

    You see ? You compare 1 value in one array to all values in the other array.

    You need only one 'for each element'. And the other takes curX from the first one as index.

    For the 'wait', search for "wait in loops'.

    (for future reference ... after the icon of the array in the condition, you see a tinny line, drag that line some to the right, it will reveal/show wich array ... easyer for us to read your events ... ty ty)

  • There is indeed an object named 'Lives'.