WackyToaster's Recent Forum Activity

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • You could duplicate the first frame so the animation goes A - B - A

    Or you could add an event: On complete animation > Set frame to 0

    sorry for the noob question

    We all had noob questions at some point :)

  • You shouldn't set the speed to 0

  • I'd add that physics is a pretty closed system and adding stuff like drag&drop won't be properly handled by the physics. Well it does sort of work to some degree at least.

  • Don't know about plugins but you can do it with javascript too if you are up for it.

WackyToaster's avatar

WackyToaster

Member since 18 Feb, 2014

Twitter
WackyToaster has 25 followers

Connect with WackyToaster

Blogs