WackyToaster's Forum Posts

  • So in all fairness, the demo is not a very good implementation.

    Fair enough.

  • In all fairness... you can buy the capx for 16 bucks :V

    But if you want to make it... I guess you can check if the dots have been touched in the correct order. The white area is just a drawing canvas and from my guess doesn´t actually do anything (because I had the game fail to register sometimes even if all dots have been colored)

  • one way would be to keep a count of the number of blocks and deduct 1 each time 1 gets destroyed.

    This isn´t false but remember you actually have an expression for this so no need to keep track of it yourself.

    Block destroyed & block.count <= 1 --> go next layout

    Iirc you compare to one because the block actually gets destroyed at the end of the tick so the comparison has to be true for 1 (but I might be wrong here, try it out)

  • It is functional but do you really need a million cells? Maybe consider trying out JSON, I think it's structure works better for dialogue.

  • You shouldn´t post the entire c3p. It usually boils down to 1-2 events or settings that cause the errors and nobody wants to debug an entire project.

    Since you are on the stable release just try editor.construct.net/beta for the latest beta release in case this was already fixed. (You don´t need to go through the guide for that, just open it) or actually do try an earlier release in case the beta doesn´t solve it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If by latest you mean beta you should try reverting to an earlier release in case that is a new bug! Or the other way around, if you are on stable, try the beta and see if it is fixed.

    construct.net/en/tutorials/open-project-saved-newer-2203

  • That would make sense I guess, but you can "disable" the scripts by adding // in front of the line you need disabled or use /* .... scripts .... */ for multiple lines.

  • Seems like a case for a bugreport to me

    github.com/Scirra/Construct-3-bugs/issues

  • I feel like we went a bit off on a tangent there with iframes, DOM elements and whatnot...

    The main issue I see here is the lack of a simple way of layouting various elements. A better way of controlling their placement. (As Fengist also pointed out)

    I do not want to use any kind of iframe, native DOM, javascript shenanigans. That´s exactly what I´d wanna avoid, I want to keep it purely in Construct/Events!

    I made this pen as an example, it´s basically a Legend of Zelda health bar. (Give or take 5 minutes of work)

    codepen.io/anon/pen/Xvjwqd

    So what does it do: All of the hearts are neatly aligned, you can add/remove hearts and it has multiple rows. Also you can move the container anywhere, the hearts follow automatically.

    How about Construct in this case?

    wackytoaster.at/parachute/hearts.c3p

    Ok so we want the hearts to move with a container, so I used a tiled background as reference point. It´s basically the flexbox. But here is the first thing: It (kind of) requires a setup function at runtime, that is not the biggest issue though!

    The main thing is to have the hearts neatly aligned and wrap automatically. It will require some mental gymnastics...

    Look at it... none of that was required in the pen I made, because flexbox does all that shizzle for me. To be fair, it didn´t take much longer than writing the pen for me, but one should consider that this is not only a really really simple case, but also I had to deal with this exact issue beforehand and I have a couple years of experience on my back. A newbie probably will sit there without any clue where to even begin, and that´s just the tip of the iceberg.

    I mean... if you have an easier way of doing it, please tell me! (And no, I wouldn´t consider using arrays easier or reasonable for such a case)

    Almost forgot to mention. This is pretty hardcoded now and I´d have to go into the code to change how many hearts are shown per row etc. For flexbox, nothing required, just change the width of the container and you´re done. Especially fun if you intend to do such a thing at runtime :^)

  • Well, that's pretty much what the iframe object can already do, but securely by default. Is there any particular reason that doesn't do what you need?

    But isn´t iframe a weird approach for this? How would you create something like this?

    [/img]

    You would make an own html/css/js website, with the functionality you need, load it into your game via iframe, then write some javascript to shovel data back and forth between your game and iframe? Sure it´s possible but... rather overcomplicated?

    Java-script is a huge issue for Construct. We haven't seen anyone creating anything special for the time being with Java-script.

    What would you consider something special? I´ve tinkered around with implementing tensorflow (with minor success because that´s complicated :V) and also I´ve implemented firebase authentication and firestore with it.

  • I didn´t receive any, maybe a typo?

    Either way, this is the basic setup for Firebase that I use

    wackytoaster.at/parachute/firebaseWithJavascript.c3p

    Obviously you need to add the configuration to the script file for it to work, and also setup your database on firebase.

  • Potentially, but the focus is on games. It's game making software.

    I´d argue that GUIs are part of games and some games can also be rather GUI heavy. Not every game is your everyday platformer/shmup/flappybird clone #2983481. I agree with Fengist here, great examples.

    So from my side: Yes please, give us a way of layouting. Valerypopoff layouter thingy is ok-ish but I think this could be vastly improved upon by Scirra (considering they aren´t limited in what they can do with their engine)

    As I sort of imagine it: A layouter object that behaves like flexboxes (flex container), with the ability to drag&drop sprites, text objects, etc. into it and have them align like items (flex items) and also the ability to put flexboxes into flexboxes. Of course with actions to add/remove/etc. items at runtime.

    Or in other words just make flexboxes for Construct. This would be very convenient imo!

  • Sure, wackytoasterzsz@wackytoaster.at (Btw the website won´t allow you to copypaste emails regularely, lmao)

    Though I think it´s a good idea to also keep most of it in the forum, nothing is more infuriating than having a problem and finding a thread with something along the lines of "I email you the solution lol"

  • The main thing to do is read the documentation. I don´t know if you use firestore or the realtime database, but for firestore the documentation is here: firebase.google.com/docs/firestore

    Setup

    firebase.google.com/docs/firestore/quickstart

    Specifically how to get data

    firebase.google.com/docs/firestore/query-data/get-data

    As I said I don´t know if there are any plugins floating around, but it´s reasonably easy to do if you don´t shy away from javascript. If you want I can help you set this up.

  • Cute and gives me crash bandicoot vibes for obvious reasons