Kyatric's Recent Forum Activity

  • Fixed capx

    For the explanation refer to the previous posts and the quick comments in the code.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Moved, congrats.

    Don't forget to edit the first post of the topic to add the final links, that could help "new readers" of the topic.

  • Cipriux: C2 is based on JavaScript.

    And in JavaScript, variables are dynamic type you rarely assign first.

    In C2 itself, you do not assign types, you have either number or string.

    So you can go ahead and assign the value of your choice to a number variable.

    Nevertheless, in the algorithm itself, before producing the hash, there is an actual lot of string manipulation going on, formatting the value as a string through several format of arrays and other (if you look at the code in the runtime of the plugin, you can check all the functions at the end of the page, after the interfacing within Construct, functions like rstr_sha256() for example).

    That algorithm is pretty complex, and actually having all the manipulations done within C2 events likely won't be as fast as using the plugin itself.

    But still I hope this gives you an idea of how you could actually do it.

    mapmerry: You may be wanting to look into continuous preview which is already a part of Construct 2.

    Also, consider the preview loading time you should possibly look to improve your memory usage/optimisation of your game.

  • Notice how your URL is not complete => Can't download your capx.

  • jrobertson789: In illustrator your image/elements are actually vectorized. They are not "yet" fixed pixels, like an actual png image is in the end.

    What you import in Construct 2 is a fixed pixels image.

    If you want your image in Construct 2 to be 128X128 pixels of size, make sure to export your image at this size from your image editor, otherwise you will have the stretch and big pixels issue.

  • Host it on a service like dropbox or google drive and put the link in your post as plain text.

    Be sure to try and get enough reputation to prevent the spam filter from removing links from your post.

    And yes, this is all done through the event sheet.

  • As always, C2 relies on HTML5 support by browsers vendors.

    As far as I'm aware, browsers do not support scanners. If you don't have access to the scanner in the browser, you don't have access to it in Construct 2.

    So unless you find some JavaScript library that actually does provide you access to the scanner and implement it using C2's SDK, I don't think this is feasible.

  • For a more accurate answer, consider posting your actual capx because we don't know how your car is set up and how to "pause" it.

    A solution though should be to have a "InGame" global variable which is by default set to 0 and an event that says that if InGame=0, then car is paused (as well as any other element of your game that need to be "paused" in whatever way this can be done).

    At the end of your countdown, set InGame to 1 and so your car will move.

    A global timescale is some idea, but could prevent the actual countdown from going on.

    Although you can always set a specific object timescale to 1 thanks to the "Set object time scale" system action.

  • [quote:j5uueswp]I really just wanted to create a subgroup within the condition, the sub-event is just to show that is created within the condition but the group is created out.

    I just wanted to create the subgroup without the subevent created in the gif.

    So how you create a subgroup within the condition without a subevent ?.

    Well you only create a sub-group from an existing selected group.

    Otherwise you just create a group (top level).

    So it will be created at the same level as the top level event and you will have to move it later, or create a blank sub-event, select the sub-event and then create a group.

    It's a matter of hierarchy and it's logical.

    Also, I'm not much a fan of using "sub-groups" within events, not too sure this is a good way to go.

    Always prefer to use functions if you need some code you intend to reuse or "option out".

    That's the best way to go about things I think, keep groups to organizing purposes mostly, it is safer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,405 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x10
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs