Aekiro's Recent Forum Activity

  • Sorry, maybe I wasn't clear.

    The array of scores would be in a C2 array.

    I would loop the C2 array like this :

    for each item in the array

    - create a sprite ( a line of the leaderboard )

    - create a text and set its value to the current score.

    So, how would I do this if my array is in js-script ?

  • >

    > 1-Do you think looping over an array (defined in js script) in construct (to build a leaderboard for example) is a bad idea, since everytime the JavaScript plugin need to parse an alias expression ?

    >

    >

    This is a bad idea and wrong on so many levels. The whole point of the plugin is that you don't have to loop over arrays in Construct anymore.

    Cheers.

    Ok, then how do I build a leaderboard (the view) in C2 based on an array in my js script ?

  • That's wierd; how is Gamee getting their app approved then ? They are basically an htm5 game portal.

    https://www.gameeapp.com/

  • Yeah, the other plugin could be some web API, like playfab, some portal API, etc.. and the json is the save data;

    Ideally, a web API call should also be done in JS and not in Construct

    1-Do you think looping over an array (defined in js script) in construct (to build a leaderboard for example) is a bad idea, since everytime the JavaScript plugin need to parse an alias expression ?

    2-It would be nice if we can get the return value of a function with an expression, currently I have to call the alias and use the StoredReturnValue expression, it would be nice if we can do this in one step.

    3-difference between "call alias" and "call function" ? the preferred one of the 2 ?

  • [quote:2s6qbtf9]Imagine AliasValue returns a json string of a js-object. How would you use this string in Construct?

    Another plugin would, that expect a json value.

    Anyway, I can always add a utility function (toJSON) to my script and use it.

    Thanks.

  • Thanks for your answer.

    1-Yeah states works too, but I still think that trigger is handy lol, like the official Function plugin exposes a trigger to any external JS script (window["c2_callFunction"]), and it causes no problem;

    2- It would be really handy if the expression JS.AliasValue(alias) returns a json string if the value is an object or an array.

  • Hello, super usefull plugin, thanks very much.

    1-would it be possible to add trigger support ?

    What I mean is, the JS plugin would have a trigger called "on trigger" or "on event" with a tag. And then in my js script I can make that trigger fire with a tag.

    Could be usefull for any asynchronous operations in my script.

    Right now, I can just use compare + trigger once. But arent triggers more performant ?

    2-In your landing page you said that "Javascript Plugin is slower than built-in Construct instructions and functions"

    Do you mean that a chunk of code written in JS is slower that code written with construct's ACEs ?

    3-Does your plugin uses any ecmascript 6 features that might not be supported in older browsers or mobile ?

    Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, very usefull, hope live preview support platformer in C3.

    [quote:15md9ek8]The WebASM export is really nice now

    The export is around 20Mb for an empty project.

  • [quote:3685mgt0]Can I use Construct 2 to sell games to publishers?

    Only If you have a personal or business license.

    [quote:3685mgt0] I saw that GAMEE has a competition going on right now and I found an old post about marketjs buying Construct 2 games.

    Last time I checked MarketJS only sell their own games.

    If you want to know more about your monetization options I suggest you go and read the : html5gamedevs.com forum.

    [quote:3685mgt0]I was curious about mobile games especially, because I think they can be a little bit easier to design and test

    As opposed to ?

    Yeah C2 is pretty good at supporting a lot of browsers, 99% of the time you wont have problems with the latest devices.

  • "Every tick" is not a bad idea, what matters is what you put in it. There are a zillion thing that the game engine is running every tick behind the scene, so adding your "every ticks" wont make a huge difference unless you are doing something really crazy like changing 1000 text object every tick.

  • hello C3 colleagues,

    What is the reason why some people want a desktop version instead of a browser version?

    Because if you uncautiously hit the clear local storage button you are pretty much screwed lol

Aekiro's avatar

Aekiro

Member since 13 Nov, 2015

Twitter
Aekiro has 39 followers

Trophy Case

  • 9-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • x2
    Famous Game One of your games has over 10,000 players
  • x8
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies