ca59eb38-e0ad-4975-9634-a2379c986d93's Forum Posts

  • So, the idea i have is to create a benchmark for testing how well games perform on mobile platforms and how efficient each exporter is. Anyone want to try something like this and care to make a chart of the results? And no, i don't even have a .capx of something that could be considered a benchmark, just the idea.

    So, anyone who's less lazy than me should:

    1. make or find a benchmark

    2. register/setup these exporters:

         - PhoneGap

         - CocoonJS

         - Intel XDK (+Crosswalk)

    3. export your benchmark and run it

    4. observe the results, post them here

    5. profit

    Again, this is just a suggestion for the ones of you who have some spare time, i personally don't even have an android device with an up-to-date version of the OS to be able to use CocoonJS.

    Either way, don't you agree, that it would be nice to have a nice comparison of how well the exporters match up to each other + what the filesizes are for your projects?

    guise pls respond

  • Objects off-screen are not rendered, if i recall correctly, therefore you should have better performance with many little objects instead of one huge.

    Also, can't you give each canvas an unique id and add a check in the conditions and thus prevent doing actions for all of them?

    20'000x20'000 pixel layout? Thousands of sprites being drawn and modified at the same time? You should be just fine, just make that the sprites are in HD! However, you might have to pause the real-time simulation of the entire universe running in the background to get silky smooth 60 fps on that NASA super computer of yours. Also, while you are at it, say hi to the Primarch system for me, will you? /s

  • The way how it looks? Sure, that should be possible. You could allow the user to input a location of an image file (such as the image with tiles Tiled uses) somewhere and then have the game load the image from the link.

    Another way would probably be to store the image as a text string (the name base64 comes to mind, perhaps something like that has been mentioned on the forums somewhere, a plugin, perhaps), then just have the user paste it.

    As for the arrangement of things, you could probably store information in a .csv file and use something like csv2array.

    -Sent from my outdated android phone.

  • Your files don't seem to be linked properly... :/

  • A little thing in regards to this topic i wanted to request/say.

    Could we have local variables for event sheets, instead of just groups/separate events? I made a post about this here, but it appears that it got buried. Just wanted to hear your thoughts about this.

  • Just a little pet peeve of mine - currently you can either create global variables, or have local variables that are either tied to a group or a specific event, however what i'd like to have is the ability to have local events that can be referenced by anything in the same event sheet (that are reset like local ones upon the specific layout being restarted).

    This way one could quickly store values like scores, states of the game etc. without using arrays, global variables or even instance variables. This would be simple and intuitive, right?

    Also, i am aware of the fact that if you'd want something like this, you could put everything into the same group and add a local variable there, but this is just a suggestion to make things a bit easier.

    So, anyone else think that this would be a nice little thing to have? No?

    *sound of crickets in the background*

    Anyways, another thing - could we please get the current time shown somewhere on the forums? For quick reference, what time ago a post was made (perhaps you can set up the time zones somewhere, but i'm too lazy for that too, so i guess i'll suggest this as well, as i probably haven't quite managed to bore you guys enough by now)?

    /spam

  • Why not use PhoneGap?

    That's the spirit! You should also check out the tutorials section for some great info too.

    /a moment of not being grumpy

  • Not happening to me, Windows XP, no folders named after my projects, Construct/Scirra folder is empty.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could possibly use the pathfinding for getting the length of a path, then compare it with the distance given to you by the distance expression.

  • 1 layout for each level.

    Not necessarily, he could store his level data in csv format and add the files to the project, then parse it and load it into an array with an AJAX request when needed (which should be quicker than just throwing EVERYTHING into arrays from the very beginning).

    A plugin like this could be used:

    http://www.scirra.com/forum/plugin-csv-csv2array_topic46096.html

    Here is something that works in a similar way:

    https://www.scirra.com/tutorials/651/custom-adaptative-tiled-support-for-construct-2

  • lennaert

    Does this mean that i win?

    <img src="http://i.imgflip.com/51l5m.gif" border="0" />

    Also, sorry for breaking your game...

  • You may be using menus and icons to interact with the engine but you do the same things any programmer does 90% of the time.

    Courtesy of google image search:

    <img src="http://i.imgur.com/QptiqdR.jpg1" border="0" />

    This is one of the more noticeable differences, which might be enough to sway the opinions of some people towards C2 (honestly, when you're starting to learn programming, syntax is likely to cause you problems, especially if the language isn't described very well, e.g. Pascal), but i guess i see what you're saying...

  • Ashley

    Perhaps a bit off topic, but why isn't a "stretch" mode possible or important enough to be implemented for the scaling modes? By "stretch" i mean, that the exact area of the layout you define in the layout editor would be shown, just stretched over all of the available screen space.

    I could see this being extremely helpful for mobile applications, where you have to deal with a surprisingly wide variety of screen resolutions and aspect ratios. Or i could just be honest and say that this feature would help numerous lazy developers in making a game, without having to worry about the part of layout that's visible to user (moving/scaling GUI elements is a pain in a certain place i shall not name) or black bars around the screen (e.g. wasted space that looks unprofessional), at the expense of slight visual artifacts, such as round objects being elliptic...

    pls respond

  • "Did i do something horribly wrong?"

    I think so, because the CPU usage hits 100% and the game lags even on my laptop (it's rather old, but 2Ghz should be enough for such a simple test)... However, i can't be bothered to check the .capx because it's made with a newer version of C2 (i seriously cannot redownload the same >100MB every time a new update comes out >_<).