METR1C's Forum Posts

  • Looks great, would be nice to have.

  • omg, so simple when you know how! Thanks a lot Alextro, very much appreciated!!!

  • Hi Alextro,

    Thanks for the reply. The .capx you have doesnt have an array, its the position of the array im trying to find. So for example in my one if you pick "Bob" then it will return "0" as thats the position of his name in the array.

  • Hi All,

    Im trying to use a dropdown list to find the index/curY of an Array. It works fine when i click on a button, but it doesnt seem to work when selecting the item from a dropdown list. Is it possible? Both methods are the exact same, the only difference is text is set from clicking a button or by selecting it from a list...

    dropbox.com/scl/fi/pmllp23seyu6tr8igcdhv/ListArray.c3p

  • Thanks Dop2000! Works perfectly. Simple when you know how. I dont know why i thought left/right would work the same, probably because assumed its looking through the same text the same way just in different directions.

    very much appreciated!

  • RIGHT(text) works perfectly fine. You choose a word and only text to the right of it appears. However, LEFT(text) is weird. It doesnt display only words to the left and cuts out characters ect. Code is exactly the same as RIGHT, +1/-1 at the end of the action.

    Tagged:

  • Found out what the issue is. Doesnt work on sites that are not HTTPS, setting up an SSL cert and this worked fine. Thanks again Ashely.

  • Hi Ashley,

    The only thing i have is ad-block and thats disabled. 2 laptops and phone and no joy. This works fine, though dont know if its in any way similar to your file system plugin.

    googlechromelabs.github.io/text-editor

    "It shows how to easily use the new HTML5 File System Access APIs"

  • Ashley thanks for the reply. It's in Chrome I can't open/save. I'm using the example you made with no changes. If it should be working in Chrome any ideas why it's not?

  • Hi All,

    When using the filesystem plugin i am able to save/open files when running the project in Preview. But when i export it as HTML clicking on the save/open buttons do nothing.

    Any ideas?

    Thanks

  • I got this work work by adding -1 to the repeat event.

    len(hex)-1

    Thanks again Rojo!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for that rojohound

    The example i gave was from a circuit ID in work where we drop the "W" to come up with the decimal.

    Im trying to get your code working via events. Im sure its easier via JS but im unable to trigger/display the results in a text box that way (cant do JS :D )

    Il keep messing around with it.

    Thanks Rojo, always helpful!

  • I know rojohound posted one years ago, would anyone have a project that contains the events for this?

    Example:

    W274B = 71010059

    Thanks,

    Metric

  • Got sorted. Thanks Ashley/Tom

  • Ashley