Jase00's Forum Posts

  • Imagine this scenario:

    > IF PlayerObject is carrying a torch

    > OR if FireflyObject is lit

    > THEN change PlayerObject's animation to EyesSquinting

    In the above condition, PlayerObject would be un-selected if the FireflyObject fires true, and as a result you wouldn't be able to change PlayerObject's animation.

    Ohh interesting, it picks 0 players due to failing the first condition, therefore doesn't change the animation?

    I would have guessed: after failing the first condition and 2nd condition succeeds, the SOL would have been reset when evaluating the 2nd condition, therefore changing all existing player's animation.

  • I am not sure if this'll work, but perhaps having an invisible square sensor above the player, and if in air and if this sensor overlaps a solid, do a loop to push the player downwards by 1 pixel (and the loop will keep checking "is overlapping solid? Push down 1 pixel" until the sensor is no longer overlapping a solid).

    The only thing I'm not sure about is if the platformer behaviour will react first, THEN the sensor. If this is the case, then this may not work or may not work 100% of the time.

    Personally, I'd recommend attempting to make your platformer entirely in events, as this gives you more control (at the cost of efficiency, but if designed right, it isn't much of a loss).

  • OK I am being cheeky, but I'm caught up in the fact that many new plugins are being added lately! I will add a suggestion, but I guess the excitement got to me and wanted to spark the idea/discussion.

    Would a ZIP plugin be on the cards for Scirra to produce?

    I suppose the concerns I can think of is if people tried loading a huge 100GB zip file, or extracting 100's of GBs. Perhaps filesize could be limited or checkable, and well, we can already write via NWJS without any limitation.

    There's 2 uses for ZIP that come to mind: creating a mod pack, and installing mods.

    E.G. I have a image generator in my project to allow custom images to be produced, which creates about 30 images, and are separated into a couple of folders. I currently use NWJS plugin to create folders and write the images to the local computer. I also have a custom level maker that creates a JSON file with all level data, along with extra files that the player might have added along with their custom level.

    Having ZIP functionality would allow a handful of files to be zipped up without requiring NWJS (as you could create files and folders in the ZIP and then invoke download of the ZIP), and would also allow people to use "file chooser" to load in a ZIP file, and then we could get a specific file from the zip to read, or unzip all contents to a directory (if on NWJS), allowing you to have mod support fully built in to your game, no expectation of users needing to find the correct path to extract the zip manually.

    Beyond this, a Construct user that has the technical knowledge could possibly change ".zip" into something else like ".mymod" and then possibly create support (at least in windows) to have file associations with this filetype, which could then allow us to create a system where the user downloads a file, double clicks it, and then your game will launch or detect this with parameters and such, and begin unzipping. That'd be so awesome!

    A third party plugin exists and I did start adding this into my project, but abaonded it due to 2 issues, which was the fact it froze your game if worker mode was enabled, and, it locked up the whole game whilst performing zip actions (I wonder if ZIP actions could run asynchronously, or even limit the speed of unzipping to not cause CPU to peak to 99%).

    Thank you for your time!!

  • Ooo I dig this idea, sounds hopefully not too complex of an idea too, a new entry in the right-click menu for an action to "Create another action with this object", which would save searching around folders or needing to type in the find box, particularly on large projects. Would be nice to have.

  • Yep, so if you use the NWJS plugin in your project, you should have an action called "open file" and you can write a direct path to your file on your computer, be it EXE or ZIP or whatever you'd like to open.

  • My AI sense is tingling

  • I think I saw an addon in the store for this.

    I definitely think there's new potential to explore with this within game dev, but the addon mentioned about "paying for tokens per request" or something, so I guess if a game was successful and everyone was hammering ChatGPT, then it would cost you big bucks.

  • You do not have permission to view this post

  • In an alternate universe, I'd take the option of being able to port a game to console, but have a "incompatible plugin" list that prevents you from exporting (iFrames, text input, etc.). People can design their games with this in mind (e.g. Instead of textinput, you will need to create an event-based onscreen keyboard and append to a string to type or something) or just flat out don't support it like iFrames.

    This isn't clean and would not be good for people that didn't realise this from the beginning, but to even humour the idea of getting a project running on a Nintendo Switch without having to complete the game and have bunch of money to get a porting service to do this, is very alluring.

  • You do not have permission to view this post

  • I find I use dictionaries a lot. Bad because yeah, not very convenient when you can't see lists of keys when typing expressions, and bad because you can't change the icon of a dictionary so they all look the same, but good because you can reference dynamic names of keys when typing in the dictionary.get() expression.

  • Yeah to be fair it caught me off guard too. The other unusual thing I noticed is, my PayPal receipt says it sent £15 more than what C3 costs on Construct's website (Inc VAT). If I had unsubscribed, then made a fresh sub, would I have saved £15? Maybe I'm missing something or there's a charge at the final step of payment or something, but yeah I'll email support, but check this yourself just in case!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think all USB gamepads work, so long as they're detected as a game pad. XBox controllers are the "default" controller and tend to work correctly right away. If you connect a controller and find the buttons are all mixed up, then you could program a "Choose your input" menu system, where the player can click on, for example, jump, and then press a button on their controller to assign jumping to a button.

    I've tested PS4, third-party switch controller, third-party dance mat, and all work fine in Construct.

    The only example of something NOT working, would be a non-gamepad item, like a MIDI piano keyboard, as these are detected as MIDI devices rather than USB game pads.

  • All Windows computers should be fine, tho Linux and MacOS won't have an "appdata" folder. Whether it auto-creates the folder structure or not, I'm not sure, but worst cast you can always have some events to check & create each subfolder, just to be safe.

  • Thanks for the reply, Ashley. Definitely sounds more complex than I thought it might be.

    And R0J0, wowww this pixelate effect is a game changer!! Even ignoring drawing canvas for a moment, just throwing pixelate onto a sprite and setting pixel size to 1, and then using "set colour", works fine with linear filtering!! This opens so many doors for me!

    The only issue being when zoomed out far away with 3DCamera, the set colour struggles to apply (I guess the pixelate effect is struggling to apply too), and another issue with pixelate effect not applying at all on non-square images, but these are minor issues (and might be related to scaling which I need to wrap my head around a bit more). Beyond this, you could bake the colours/changes to a sprite by utilising drawing canvas to paste the clean pixelated sprite, make changes to the drawing canvas, load back into a sprite via Load URL, then there's no need to worry about the effects applying correctly anymore. Amazing!!

    I always thought the pixelatte effect was more for smaller little effects or screen transitions or something, but now I perceive it differently and see it as a tool to allow you to use linear filtering in your project, whilst still allowing you to choose individual objects that you would like to have point sampling applied to.

    Many thanks for unlocking many new ideas in my mind, and thanks for the example c3p. I hadn't explored the "using mouse to draw on canvas" aspect yet, so this helped a huge amount!!