oosyrag's Recent Forum Activity

  • You can usually start refactoring code/events by describing what you are trying to do in as few words as possible.

    For me at least, it's not entirely clear what your desired result is just from looking at the events, so it's difficult to give advice about how to make it more compact.

  • Here's how I would do it.

    dropbox.com/scl/fi/pxjel9inotzuymmdaq7em/idlenumbersexample.c3p

    An array (or other kind of table style data structure like .csv) for the labels makes it cleaner, more flexible, and more easily modifiable in my opinion.

    Of course with any system like this you're going to run out of labels eventually. You can use the letters in sequential order as I've seen many idle games go (a -> z -> aa -> az -> ba -> bz ect.), or use a gameplay reason (a wall) to force resets every once in a while like Idle Champions of the Forgotten Realms. Or you can just use proper scientific notation 10^n. It would be great if everyone used and learned the scientific notation style to display large numbers.

    Edit: There are still some potential improvements to be made, such as having a fallback display method after the number gets too large for defined labels, and zeropadding decimals. Perhaps also a variable to specify the number of significant figures desired.

  • Have you tried using an older version of C3 to see if the problem still persists?

    If the problem goes away in an older version, try to pinpoint the version it happened check the changelog for anything that might be related. Then you can narrow down the issue and file a bug report to get it fixed.

    If it still happens in an older version, it's more likely that it was due to a change you made recently in your code.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm.... Good point.

    But for now with what we have, if I were doing bulk operations I would just use an untagged (or otherwise generic tag), and push the contents to an array as they complete. I don't know if they would be ordered, but there's no particularly explicit guarantee of order when choosing files anyway. If order were a consideration, I would implement sorting through the array based on content.

    The array size and file count can be compared to know when all files have been loaded into array, or throw an error of there was a mismatch somehow.

  • Oh, didn't see that. I also would not recommend using the csv plugin, it can be done with a simple array instead.

  • What exactly are you having trouble with? It will be unlikely anyone is going to put together the whole thing for you.

    So you've defined your states. Use an instance variable to keep track of the state.

    Then define the conditions under which you want to change the state.

    Then define the actions you want to take in each state.

    You should then have your AI basically complete. Make adjustments as needed if anything behaves outside expectations after testing. Ask if you can't figure out how to implement a specific thing to your liking.

  • You probably don't want to use the peerstate expression, unless your ready trigger is holding a key down. Peerstate is better used for inputs and not variables.

    I'd just have the peer send a message. When host receives the message, it also knows which peer sent it, and can set a variable for that peer to true or ready.

  • Never mind, it works the same way with the new file system plugin too.

    After picking files, you'll have a "directory" of all picked files, so just loop through each of the files (Repeat filesystem.filecount times) and display the contents.

  • For reading files, can't you just use the old file chooser plug instead?

  • Send a message to the peer indicating that they should create the relevant objects then. Or, have a peer only event that creates the child objects when the parent is created.

  • I'm unable to test without a subscription, but I imagine if all the child objects in the hierarchy were synced properly it should work fine.

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 39 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

22/44
How to earn trophies