Aphrodite's Recent Forum Activity

  • Imagine you want sprite1 image point number 3 to go to sprite 2 image point number 4, it should go like this:

    Sprite1:set position

    X : Sprite2.ImagePointX(4) - (Sprite1.ImagePointX(3)-Sprite1.X)

    Y : Sprite2.ImagePointY(4) - (Sprite1.ImagePointY(3)-Sprite1.Y)

    Tell me if that works, as I did not tried it

    You can also replace the number of the imahes points with the name of them.

  • JohnnySheffield I meant functionnalities like loading a .bat for exemple, or a more direct control of memory (this I would think not, due to the same base on chromium)

    I know node webkit does not have this possibility last time I checked (security reasons sure, but who knows, maybe someone would have liked to access such possibilities), but I may be wrong as I never use wrappers anyway.

  • ArcadEd

    "1. But isn't Canvas+ not a real browser? Shouldn't the CJS exporter simply work for CJS and not worry about anything else?"

    I think the issue is that maintaining two codebase where one should be sufficient is the problem for such basic functionnalities as loading a image into memory vs downloading it, also, CocoonJS is supposed to work with the html5 export too, but at least indeed the communication is up, so anything good can happen, and no more break hopefully.

  • We're always on the lookout for new ways to publish, but most of the alternatives we see have some significant caveat that make it a better idea to use one of the existing ones in C2. If there were any alternatives that were really compelling, we'd add them in to C2.

    Aphrodite - note C2 has forced GPU acceleration enabled on Windows in node-webkit for several releases now.

    Well having a non systematic blacklist on XP and Vista but still some blacklisting rather than a total disabling of GPU was the point also, but I agreee that it does not seem that useful otherwise.

    JohnnySheffield I wonder, does atom has potential for more low level interactions with the operating system compared to node webkit?

  • Well I remember someone trying to do a wrapper based on node.js and firefox, not sure how it went in the end, nor if it added any functionnalities (after all, a wrapper is useful when it adds something).

    Just for reference, it was here (not in english):

    http://www.pascalsengler.fr/construct/f ... c587bedb46

    Afaik, it had the advantage of not using the unfair XP gpu blacklisting that node webkit had.

  • Last time I checked, the filechooser letted me choose a file from my gallery, I did not test in a wrapper, but really if this does not work inside crosswalk, then I would consider it as a bug.

    You may want to accept only the files image/* (this is the mime type of image files, it will ask the user for a picture in his gallery, or camera), and accept multiple files (not tested multiple files myself on a phone).

    Also maybe there are a filechooser plugin in cranberrygame list of cordova plugins.

  • I like the design of it, what is said feels however a little too much like "so awesome OMG" but I guess that is normal marketing, "True multiplatform support" will make people angry since they dont get what multiplatform implies effort wise but we are accostumed to that so it is not a problem (and it is indeed multiplatform due to the html5 based runtime after all).

    Cant wait for the update of the C2 page itself ^-^

  • One word: yes

    Not only it deactivated groups are not processed, but also they help organise your project, and they also make the debugger profiler tab really useful.

    If the amount of work is really too much for this project in the ned, still keep it in mind for the next project you may do.

    PS: since it involves quite a lot of modifications, remember to do a manual back up before hand, so you can make mistakes without losing too much.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Aphrodite , thank you for the clarification. It's the concept behind some actions that confuses me. Since I am not a programer and I am introduced to programming concepts within Construct, I feel that sometimes the logic is very clear ("do x get y"), however the lack of foundational knowledge (in programing) other times make the logic behind conditions and procedures feel somewhat obscure. I can't really put in in words, it's more like a feeling, some steps seem to be way steeper than others. Perhaps this is something that someone that has a background in programming doesn't experience as vividly as I do.

    Enough psychoanalysis for one post though, thanks again for the information ;o)

    A quick exemple: I did a land generation concept based on arrays and tiledbackgrounds (was before the tilemap), and basically the land would generate in 4 times:

    First populating the array

    then correct some values in it

    then apply some filtering

    then create the objects

    The way it was done, it took 4 ticks to do it

    believe me, those 4 ticks were long (60 seconds for all of them combined), so you cann see the execution is stopped

    Afaik the only heavy calculation C2 does that will not stop the game (aka: done in parralel) is the pathfinding algorythm.

  • shinkan , ok, but will they happen incrementally, or it will just go from 0 to 1000 at once? And if they do happen incrementally, isn't this adding more calculation time between each tick? I mean, surely a repeat 1000 times event should demand 1000 more calculations than just a single every tick event (both having the same actions). I hope I am not as stupid as I feel right now 8/

    Thanks

    It will repeat indeed, a repeat 1000 times does 1000 the same thing, however C2 have some "cache calculations" to reduce the amount of identical calculations sometimes, also, you should only use loops when they are useful (using a loop to add 1 to a variable with a repeat 1000 times is not useful, adding 1000 is more direct, however if you want to create between 1 and 20 objects and placing them one after another, then create them within a loop like "repeat X times" where X varies from 1 to 20 is useful), in most cases, if you dont know if a loop is a good solution, it probably is not, when it is useful however, it is kind of visible.

  • You can also use the set canvas size action, combined with the set layout scale, to have multiple "base resolutions" instead of just the window size itself

    I think being able to set the base resolution for the low quality would be a nice addition though, as this trick with the set canvas size feels kind of "hacky".

  • System, Compare two values:

    First value:WaveVariable%2

    Is equal to

    Second value:0

    You have to write the "WaveVariable%2" inside the first value.

Aphrodite's avatar

Aphrodite

Member since 20 Dec, 2011

Twitter
Aphrodite has 2 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies