KeeghanM's Recent Forum Activity

  • Thanks R0J0hound for your (always) helpful input! I managed to spend a bit of time and re-structure my underlying mechanics to only require 1 extra dimension which I'm just using a collection with 2 arrays in it. But I think as a side project I might fiddle with creating some Event based functions for both the n-dimensional array and the dynamic type/value lookup as well. Simply as an experiment

  • Yeah that's what I've done in the past. Simply had multiple arrays and on the Z-axis of one stored the UID of the next one.

    But that isn't dynamic which is what I need. I don't know how deep it will go so was hoping for a way to just continually chain on more and more as and when needed. Might look at JSON Objects but then that'll be a lot of parsing as I try to find the end to add more.

    Might just write an unlocked array plugin which allows you to just add more depth to arrays as you need.

  • Is there anyway to create an array object with more than 3 Dimensions? In the past I've simply linked multiple arrays together by IDs when I need more but with my current project that isn't possible due to the scale.

    I was considering writing a custom plugin for "unlocked" arrays where you can have as many dimensions as you like, but that seems like a pain in the $$ so I wanted to know if a) someone already has done that or b) theres a simpler "native" way that I'm missing?

  • there is a RexRainbow plugin to do this, download it here:

    https://c2rexplugins.weebly.com/rex_zsorter.html

    Or, you could just implement it in actions yourself. I have a tutorial on it here:

    https://www.scirra.com/tutorials/9554/i ... r-ordering

  • Wow. Thought I'd tested that. Turns out I had ONE thing not set as global in the container (a sprite for collision detection) and once I changed that. Boom. Done.

    Cheers dop2000

  • Hey!

    I'm trying to have all the NPC's stats stored in their own dictionary, well MULTIPLE dictionaries for different types of stats. So I have a container with the character, and several dictionarys.

    I need these stats to persist through out multiple layouts, so I added persist to the NPC sprite and was hoping because it was in a container that would flow through to the dictionaries.

    Sadly, it does not. The dictionaries get deleted when I move between layouts.

    I know I could just use variables on the sprite... but I have hundreds of values in each dictionary. Plus I want to be able to save and load them using JSON/LocalStorage so dictionaries are perfect.

    The other option I can see is save and load from JSON each time... but that seems... to put it nicely... janky.

    Here's a capX demonstrating this. Run it in debug and you'll see the sprites variable stays with persist, but not the library. https://drive.google.com/open?id=1eLmyy ... lfAIQNLGv5

  • Yeah, the way I see it working is with an object you define as your "Fluid". This is where you define the properties such as vorticity, diffusion, etc.

    Then you have a behaviour you add to other objects, which when they are over the "Fluid" and move they add a new "Splat". You can then define on each object the colour, size and other things.

  • Gonna follow this for educational purposes! I tried this myself once.... wen't horribly wrong. So I'm excited to see how you did it!

  • How exactly do you envision this working? Will it be a behaviour applied to a sprite? Is it it's own object? Or is it purely a graphical effect?

    Do you want it to effect other objects? Any objects that are touching? Or tagged?

    I'd be interested in taking on the challenge, but need more information on exactly how you see this working.

  • Oh ok, in the video linked they behave more like my ones.

    And you said you only wanted them to move to within about 10 pixels of their starting location...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just need a sprite and a few variables. No tweening etc

    Heres the code so you can see:

    You can download a capx here https://drive.google.com/open?id=18kYr8 ... WeO8kUeope

    I would just like to provide a counter argument to dop2000 and

    I am running C2 on windows 10 laptop. 4GB Ram. 1.8GHz Dual Core CPU. On board graphics only. Literally an old dodgy pile of poo.

    My project has over 10,000 events over 10 eventsheets . And layouts are upwards of 10,000 x 10,000 in size with 1000's of individiual objects in them.

    0 Slowness. None. Zip. Nada.

    Only thing thats slow is saving, because I'm not saving a compressed project and my HDD simply throttles at saving time. Other than that the project is as zippy as ever. And yes, I did run this project on Win7 and Win8 even. Always the latest version.

KeeghanM's avatar

KeeghanM

Member since 8 Jan, 2015

Twitter
KeeghanM has 1 followers

Connect with KeeghanM

Trophy Case

  • 9-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

11/44
How to earn trophies