tlarkworthy's Forum Posts

  • Most actions in C2 I can do with keyboard, but using global and local variables I have to use mouse to select them in the combo box. I instinctively try to use keyboard but it doesn't work. It would save my RSI a ton if I could use keyboard and not have to move my hands around so much

  • unity asset store.

    assetstore.unity3d.com

    they are 256x256 but I suppose you can downscale them

  • "If a tree falls in a forest and no one is around to see it, does it need to modelled?" -- Way of the Game Dev

  • There are 2 reasons for using base64 string to load images in web apps.

    1.

    When a browser fetches an image from a URL, it does so asynchronously. A browser can have upto 6 asynchronous requests pending at the same time. So if you have 20 images (or .js dependancies) in a document, the last 14 will block until the first request is complete in a queue.

    So people who *really* care about speed will encode the image data as a base 64 encoded string. This is about 30% larger than an image file, but it has the advantage of being able to be embedded within the HTML document, so no independent, potentially blocking, asynchronous request has to be issued.

    So that't the mainstream reason why people use base64 strings with images.

    2.

    Because the browser can load an image from a string, it also provides the opportunity to programmatic generate the string and alter it. So you could write some JS that loads an image, changes the colors, serialises to base64 string, then inject into a sprite via a base64.

    If you have lots of images derived from one base image, you can save a ton of bandwidth rather than encoding every color and making the user fetch every hue of image from an URL. (an images are the biggest bandwidth hog in web)

    I have no clue whether this is a feasible strategy within construct 2 though, I am talking from experience writing normal web apps.

  • connect the reds to the greens.

    The reds are outputs of components (e.g. angle of enemy from radar)

    The greens are inputs (e.g. the thrust of an engine)

    By connecting the things you are saying I want the thrust to be proportional to the angle of the enemy, which *turns* the component.

    Each connection is really the transportation of a number to another component. By connecting your ship in weird ways you will be able to get it to track enemies and all kinds of other cool stuff (like detonate a nuke when near an enemy)

  • Yeah doing it via WebGL is not great.

    I think there is a convoluted path to do what you want via

    base64 injection

    but I have not done it myself (but wanted to)

  • I see you. You have a ship with 3/4 sides guns. I fought you. I won 14 components to 13! A very very close match! Haha.

    You should see a list of players in the lobby. If that doesn't load there is no point hitting "edit ship"

    Something must be funny with FB authentication. It *should* load your server data when you first hit the page, if you have an account (which you do). Then you should see your server saved ship in the normal missions. It should also load all your XP and display it when you first hit the page too. If neither of those things are happening then its not connecting to firebase properly. I'll try and regen an account here and see if I can repeat the problem.

    EDIT:

    Which browser are you on?

    Try pasting the output of a CTRL + J the javascript window. It probably has some errors somewhere that would help me.

  • I built the Firebase plugin to do this kind of thing without a server. Firebase's hosts are served off a CDN and are a million times faster than anything you or I could afford bandwidth wise.

    I played your tanks game but I got lonely :(

    I don't understand the radar, it it's coordinates relative?? It seemed to be taunting me but I could never get anywhere. I got stuck and annoyed in the wall maze too. The walls are waaaay too long to be fun trying to navigate whilst moving at snails pace.

    I want a fight though! It will be awesome if enough people are online at the same time.

  • Yeah multiplayer is a bit ropey. Hit the facebook icon on the top screen. Then you will see a list of players (e.g. me) Then you can fight your ship against mine. I think there might be some scroll issues to fix on multiplayer but I need dudes test! :p

    Once you have logged into Facebook, your ship and scores will be remembered forever.

  • I am a full time programmer. C2 is definitely programming.

    I have written games from the ground up. C2 is 100x more productive than raw Javascript. The time between coding a UI and experiencing is very low with C2. This is critical for rapid iterations. Its saving me tons of time

    Yesterday I managed to force Dijkstra algorithm in C2. It was actually harder work than if I just coded it in a normal language. BUT I COULD. The time lost in expressing computer science style algorithms is saved many, many times over in being able to experience the visual and interactive elements of the game immediately.

    Performance is a b****. Still, even if I port the entire project to Javascript myself, it would still lead to a shorter overall development time. I can do all the tinkering with things so fast with C2

  • You are a computer program, born in space, from the womb of an AI factory. You incubation pod provided enough necessary technology to survive ... but only just.

    Combining technology makes you more aware of where you are. It gives you the ability to shape the universe.

    You need to learn fast, get stronger. Other AIs want to take you apart. You must kill them. Take *them* apart. Grow stronger from the wreckage of weaker minds.

    Collect minerals by mining asteroids. Build thrusters, build weapons. Connect them.

    Kill enemies. Dismember them. Build more weapons. Build bigger thrusters. Grow. Connect. THINK

    universal machine

  • Rex made this SaveLoadStatus plugin here.

    Its a more modern version of the instance bank that uses the new inbuilt save load features. It doesn't like loading object on different layout than it was saved though, see my workaround later on in the thread if you need to do that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think this is the same bug I am getting here

    I have made a minimal capx of it

  • Link to .capx file (required!):

    dropbox.com/s/icpdvobyjk3k2s1/picking.capx

    Steps to reproduce:

    1. (run the layout, this is the explanation of what it does)

    2. Put two text boxes, A and B, in a container

    3. Create another box of type A (will create a B too)

    4. Pick A and B both by UID (this step is critical to the bug)

    5. call a function

    6. in the function (which *should* have a fresh SOL)

    6a. pick any box A (another B *should* be picked as well as they are in container)

    6b. set an attribute of B, IT BREAKS! B is undefined.

    Observed result:

    "Type error, cannot read uid of undefined"

    Expected result:

    should change one of the text boxes to "hello", removing either of the 2 side-by-side pick by UIDs the program work fine.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Construct 2 version:

    r145

  • EDIT: turns out I was on a general bug with C2, so this is unimportant now

    I wrote a trigger condition.

    I have an action that triggers the condition, after picking items from a container.

    In the trigger event, I pick an item, which should pick all the siblings in the container. Yet it doesn't and I get undefined object errors.

    I tried using the "pick all" function to reset the picking but it doesn't help.

    I post to see if someone says something like "oh you need to reset the picking when triggering for an action". I have done nothing apart from call the runtime.trigger and noticed weird behaviour. If no-one can help I will try getting it into a smaller example but I am having trouble replicating it at the moment on non-3rd party plugins.