locohost's Recent Forum Activity

  • For now I'm simply adding a "wait 0 seconds" at the very start of my functions to finish the current tick. So far this is working but I have more testing to do.

  • Ok that's some interesting functions improvements. I look forward to it. Thanks for the link :-)

  • Hmmmm, Ok, not sure why I haven't noticed that in Windows. C3 does match that. Regardless, if you lookup any of the millions of application UX design guides, patterns and practices, they will all say buttons should be recognizable as a button and should indicate what the button click does. So they're actually incorrect in Windows too :-/

    Unless...

    There is some established design (that I haven't seen so far) that says UI expand/collapse arrows should be reversed?

  • Currently the C3 section expand/collapse arrow icons indicate the "state" of the section. Why? I'm looking at my screen so I can already see the state of my sections. UI buttons should always display icons and/or text that clearly indicates what the button does.

    Tagged:

  • I really think that C3 dev team should consider putting some serious thought and effort into improving functions. What we have now in C3 functions is a reasonable "MVP", but definitely not great.

    An example improvement...

    A function refactor that would allow us to complete the prior "tick" on each function call. If you don't want to risk breaking existing functions with a refactor, give us another function call (or a function call param?) that completes the prior tick when called.

  • locohost - I literally ran into the same thing with my recent post too

    here> construct.net/en/forum/construct-3/how-do-i-8/how-long-does-a-pick-sprite-la-142303

    I too have been programming for many, many, many years and tend to function'ise as much as possible to reuse code and prevent repetition. That was also my downfall :)

    So, want to let you know you weren't alone on this one.

    Thank you graham-s

    That does make me feel better :-) Do you use the "wait 0 seconds" just before calling sub-function trick? That seems to be working for me. Thank you AllanR for that one. I'd love to compare notes on using functions in C3. I really can't build an app without lots of functions. With all the suggestions and helpful replies here, I did get a lot working yesterday.

  • Might want to take a look at Dictionaries.

    newt Ok thank you. I'll do that now :-)

  • Ok I finally got it. If you're not using array.push to add data (you're using array.setXY exclusively), you have to call array.setSize to keep adding a new row.

  • Oops, no this is wrong. Array.Depth is always the fixed size, not the number elements in array.

    Also, array.Count does not work.

    There is no array.Length

    How do I get how many records are added to an array?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So was right, the action that sets dataRow needs to be this...

    dataRow = dataMonsActionSet.Depth - 1

    Thanks again Zg13shren!!!

  • Hmmm, you may be right. I should be setting dataRow = dataMonsActionSet.Count - 1

    I'll try this now. Thank you !!

  • I'm trying to use just a single instance of a global array as an in-memory "data table"'ish thing. Is this dumb? Is there an easier way to do this?

    Below you can see my function that is trying to set rows in the data array. You can see in the debug console that no data is writing to array. I read somewhere, or someone told me (don't recall which), that you don't have to pick global arrays, you just reference them in an action and you'll always be using the one instance. This doesn't appear to be true.

    Can you see what I'm doing wrong below?

    Tagged:

locohost's avatar

locohost

Member since 19 Sep, 2014

None one is following locohost yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

14/44
How to earn trophies