zumwaltwood's Forum Posts

  • I used a generator for my privacy policy, you can see the result at:

    cyborgsattack.com/privacypolicy.htm

    And for additional compliance, I have a terms of service:

    cyborgsattack.com/termsofservice.htm

    You really need both.

  • Remember, the engine runs about 60 loops a second or more, so a loop in a loop is something you use sparingly, each object is a container, so your enemy is a container, you just need to check for a local event or variable against that object, and only objects that match a condition, its overkill trying to check all in the layout, and from my experience, so far no real need of using foreach yet, all personal opinion of course

  • thanks, that was the steps i was needing and missed, i presumed that the array load would allow me to load from source being a URL to the json, i looked everywhere for this information that you graciously provided to me, sample projects like this short and sweet example really need in the docs, thanks again rhg1968

    3 very important things here that need addressed in the documentation

    1) how to structure your json data for Construct 3

    2) using ajax to capture the data in a download from a url

    3) using the array load to then move that data into the array

    and a very important 3a, when you load it in, the array is essentially overwritten, not appended to, so a LoadAppend would be nice, although impractical right now based on how it is coded

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No, i have switched on the developer console in chrome but nothing stands out, my logic is simple, on layout load, load from Json into array

  • Thanks, then i must be doing something really wrong, i have my array, i have it set to load from json, giving it a url of "https://www.cyborgsattack.com/files/ScriptedConversation.json" but this doesn't load anything into my array.

    i would have expected that my array.at(0) would have a number 1 in it, but it has 0 in all array elements

  • Sorry, dumb question, but i need the syntax for the JSON file that will load from the URL, all i have to go off of is:

    {"c2array":true,"size":[5,1,1],"data":[[["tiger"]],[["rabbit"]],[["mouse"]],[["lion"]],[["cow"]]]}

    but this doesn't load, obviously made for C2, so what is c3 Syntax?

    I've tried to use "Load from JSON String" into my array, nothing loads, and i point at that information which is in a json file on my web server.

    Thanks

    (again, sorry for stupid question here, but can't find any tutorials that contain this info and the manual doesn't contain the layout either)

  • I have an idea, but i can't do any testing until i get back in town later tonight.

    My thought is this is going to require you to write your own plugin, i think this can't be done natively. I could be very wrong about that, but now that i know the source, that gives me something to look at directly.

  • instead of 40 pixels use something like 100*dt (note that is DT in lower case) I learned this early on, increase the number or decrease that number based on how fast or slow you want to move.

  • No, you have 26 events in free version, the free version is almost limitless and as a new person to the engine, it's unlikely in 26 events you can run into limitations.

    You can write an entire game in 26 events.

  • I will skip past all this logic debate and move to the logical question, what is the file size of the image with its animation set? A possible problem, the images are all to scale as 1024x1024 which would easily be 256k per image minimum, the that x 40 for the frames, even with those resized in the layout, that won't change file size.

    Thus logically we need to start simple, what is the size of the images in memory, 4K? 256k? 1mb?

    A 40 slide animation with each image at 4K = neglable affect in loading

    A 40 slide animation with each image 256k = performance hit

    As far as I see, C3 caches the animation to play then plays it after cache

  • cyborgsattack.com/files/alphabet.zip

    I threw this together, you can expand on what to do with the array, but it is only currently going to store limited characters, I don't have it really set to a size that matters anyway, you can use it or not.

    The point in this project is creating your characters, adding them to a family, giving the user the ability to click on them, add them to your scene, click red X to delete last created character, which I think matches your request on how you do it.

    I am assuming a lot here, such as you have your image files already, you know your character list, your simply trying to create them on a click of existing like a virtual keyboard, then finally the trick of removing the last created character no matter which it was (aka family member)

    If I'm off base, let me know

    Created in R106 of C3

  • I have 1 global layer, HUD, that's it, the copy/paste is on lower layers on different layouts, but when pasting with multiple layouts open, it cross pastes, and not on the global layout layer, these are non global layouts without shared layers. It's goofy

  • Create global variable string, set its value to something

    Add text object to scene

    On layout load set text value to something like

    "I ran across a " & Globaltext & " on the way to work."

    Make sure to have spaces before and after the & signs.

    Additionally, I added 2 local variables to the text object for testing, one called Name and another called Age, then I put in the following at layout load

    Text.Name & " enjoys " & Globalstuff & " at age " & Text.Age

    That worked too with global and local variables

    Now for the arrays, either load from Json, or maybe on layout load set array elements like setxy 0,0 to value, setxy 0,1 to something then call it as Text - set text - Array.At(0,0) & " has " & Array.At(0,1)

    Make sure to put the right dimensions on the array sizes on X and Y

  • Lol.. ok to be more specific:

    Walla (Arabic for 'I Promise' reference Quora) it works! (Implied thought for rest of sentence)

    Strong sentiment for giving truth that for me it works without issue :)

    For all the minor issues that come up from time to time, I get more done in a single day with C3 that takes me many days in Unreal or Unity, but don't get me wrong, I love those too, but for 3D projects, not 2d.

  • I had a similar problem, the turrets would spawn many on touch of my Turret tower, which was not what I wanted, in like 1 tick I had something like 14 towers on one spot. The way I fixed it was to check on touch, the turret type, plus whether something is overlapping, granted this isn't a solution for you without modification, but it is a sample, maybe later tonight I can work on a working sample to help fit your problem directly.

    Here is an image of how I have mine set up.

    cyborgsattack.com/files/overlapcheck.jpeg