oosyrag's Recent Forum Activity

  • Did you try looking in the manual?

    construct.net/en/make-games/manuals/construct-3/scripting/using-scripting/script-files

    Adding script files

    Script files can be added in the Scripts folder of the Project Bar. Existing JavaScript files (.js) can also be imported using the Import scripts option instead.

    Factorio uses zlib for compression of json data, similar to what you're trying to achieve.

    A blueprint string is a JSON representation of the blueprint, compressed with zlib deflate using compression level 9 and then encoded using base64 with a version byte in front of the encoded string. The version byte is currently 0 (for all Factorio versions through 1.1). So to get the JSON representation of a blueprint from a blueprint string, skip the first byte, base64 decode the string, and finally decompress using zlib inflate.

    Here is a javascript implementation of zlib

    github.com/imaya/zlib.js/blob/develop/README.en.md

    I think you're better off using pastebin like what dop suggested or trimming the fat out of the data as rojo said, basically make your own file format. Doing so really depends on the amount and type of data specific to your game though.

  • How large is your string in bytes? How large is it after compression with a standard zip archive? By what method are you interfacing with the server? I would find it unlikely that compression should be necessary, since this is not synchronous data transmission.

    If your file size is really large enough to matter, then you could also probably optimize the data being sent in the first place by only storing the necessary information.

  • Til, after 10 years of obsessively refactoring event counts down, thanks for this tip lol. I might have even made some mistakes if I thought all condition was being checked every iteration regardless of order hmm....

    Although the sub event method is often useful for running actions at only the start or end of a loop.

  • Your request is unclear. You'll need to define or describe the expected behavior more precisely. If you can do that you're already most of the way to the solution.

  • Use sprite objects, and set your different sentences as animation frames.

    You can also use the sprite font object, and set the text randomly from a array or other text project file.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can also use invisible helper sprites overlapping a single other sprite, but usually for animations you want separate sprites for your buttons.

    You can also do what you said and define areas for clicking, but that is super clunky and inflexible and you'd just be wasting your time.

  • Use your global variable as an indicator of the previous position.

    Before you update the y coordinate of the sprite in the global variable, compare the current y value of the sprite with the value stored in the variable, to see if it is greater or less than the previous value stored in the variable. Then update the global variable with the current value.

  • On start of layout

    For each sprite -> set instance variable

  • I'm curious, what game? Can you link to your version and the stolen version?

  • There are encryption plugins available that will let you encrypt data to save and read encrypted files iirc. That would be a more significant step you could take on top of simple obfuscation by changing the file extension.

    But in my opinion there's not much point, as far as redistribution goes it doesn't really matter how many layers of protection you put on it since your program will be able to read it either way. Encryption might prevent someone from reusing your assets elsewhere, but from what I recall of your project your assets and format should be pretty unique to your program.

  • Common sources of frame rate slowdown include exceeding fill rate capabilities, physics and collision calculations, inefficient gameplay event loops, and pathfinding, among others.

    You'll need to first identify what is causing your problem to fix it.

  • What Construct offers? Accessibility is generally a design issue, not an engine issue.

    You can use text to speech for blind users, to answer your specific example. Did you have anything else in particular in mind as far as technical capability goes?

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 39 followers

Trophy Case

  • 11-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

21/44
How to earn trophies