99Instances2Go's Forum Posts

  • If one object in a container is created, every other object in its container is also automatically created.

    If one object in a container is destroyed, every other associated object in its container is also destroyed.

    If a condition picks one object in a container, every other associated object in its container is also picked.

    Sync ?

  • That is what they do, they just overshoot, and when they move in a dense pack, they tend to get stuck. I choosed for fysics to get them moving by force aligning to the grid.

    Only one gets alignd / tick.

  • Ok, i tried out that "Goal-Based" path-finding, mentioned earlyer.

    https://

    drive.google.com/open?id=0B1SSuCVV8v74QndqaUFQT2I3R0k

    Aynyone know how to manage the movements better ?

  • Leave the origin alone. (unless you need to object to rotate arround something else then the centre)

    Instead. In the same window as you move the origin you see a big +. Click it to make a new ImagePoint.

    Name it as you like. Remember its number.

    Now with it selected in the list of image points, move it to where you want it.

    Close the imagepoints windows before you close the sprite editor.

    Now, when you set the position of de truster. The X value will be ship.ImagePointX(number). Or ImagePointX("name"), as you like. The Y value will be ship.ImagePointY(number).

    Hope this helps you.

  • 2 things comments i like to give.

    1/

    Localstorage needs time to upload en download things. You can use downloaded data AFTER they are downloaded. Not during or so. Meaning: after a 'get item' you need a condition 'on get complete'. Then you can use the data.

    I am sure that step was also in the tut. Look for it.

    2/

    You can simplify the whole thing by using a dictionary. Store the username in a key (check first for existing). Store de score in the value that goes with the key. Easy to handle. Easy to debug, the contents of the dictionary show in the debugger. And they always wil be a not seperatable pair.

    Now, instead of adding a million keys to the local storage, you add just 1 key to it, give it a name you like, and store the json of the dictionary in its value.

    You can ofcourse also write the array you use the same way in the local storage. (1 key, 1 value as json) But the array is in your case (only 1 text + just 1 number) just that little to complicated for what it is.

  • When u code, you change a lot (obvious, thats coding). Could it be that you retreived in a total other way then you stored ? You should clear the localstorage after recoding the the localstorage. I had errors that way, got solved by clearing.

    Wanneer je programmeert, dan probeer je dingen uit, je verandert veel. Zou het kunnen dat je data opgehaald hebt die op een totaal andere manier opgeslagen zijn ? Omdat je iets verandert hebt in je localstorage code. Dat geeft fouten (zoals ik in het verleden heb moeten vaststellen). Als je grote veranderingen doet in de localstorage code, maak de local storage dan eerst leeg voor het te gebruiken.

  • I cant help you with regex expressions. Been there and died there.

    But, may i suggest another way ?

    Populate a Dictionary with all the fishes UID's that have collected set to 1.

    For each fish > collected = 1 > add key str(UID) in the library

    Make a key in the localstorage plugin and give it as value the Dictionary.asjson. Store it.

    Call it back.

    When done > Action > Dictionary > load > the value (json) for that key in the localstorage.

    Dictonary > for each key > Pick fish int(key) > set sollected to 1

    Update: about your last post

    Its .... "i",loopindex("loop")))

  • With this, i just marked the this treath for future reference, now i can find it back. Sort to disturb.

  • Thank you very much, thats is one.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there a way to set Unread and New Posts to zero ?

  • lol 7Soul, beating me in a few minutes, mine is obsolute now.

  • You have the variable PlatformAngle and the expression LayerAngle("platforms") .

    At the same moment as PlatformAngle gets capped on 360 (not sure, events are a mess), the expression LayerAngle jumps from 360 to zero. 360° = 0 °. You cant read out the expression to turn, it goes a differend path then the variable. Thats one. On top you handle the right button with an else, and in this case even sunbaiting in Tinerife meets the else condition.

    Here you go:

    https://

    drive.google.com/open?id=0B1SSuCVV8v74Z0cwakw3OG0xU2c

  • Can we review the events ?