NicotineLL's Recent Forum Activity

  • Jumping from a platform that is moving upwards doesn't seem to work with the Platform behavior when using "Set vector Y" to jump instead of "Simulate Jump", does anybody have any idea why that might be?

    Here's an example: drive.google.com/file/d/1ChH58U-sgJ2cTnivWbZfIQMtIlvFTIeO/view

  • You do not have permission to view this post

  • Anyone who has taken the time to read the docs knows that Sprite Font plugin is faster than Text plugin for displaying fast changing text, however I was shocked to discover how big the difference actually was!

    There were many topic in the forum about it, but I haven't seen a visual representation, so I threw together a quick test demo that anyone can run to see how it performs on their machine: https://www.construct.net/en/free-online-games/text-vs-sprite-font-plugins-30479/play

    Source file: https://downloads.construct.net/uploads/120/30479/06946e1b-ce65-4008-a82c-1b5b5bf24aed/text%20vs%20sprite%20font.c3p

    Tagged:

  • Thanks for the input! The solution did seem hacky, but I couldn't think of anything else that would work outside of writing a script. I guess I'll just use a host family to do the picking.

    Unfortunately, I can't really use objects2 to loop since the snippet is a part of a larger function, but as a standalone it does look better.

    I did, however, like your approach to the comma solution so I'm yoinking that! Very neat indeed.

  • I need to create a loop for object in family "objects" that have children "objects"

    In code something like this:

    for each objects
    repeat objects.ChildCount
    objects pick child objects instance loopindex
    do stuff
    

    As a workaround I've created a second family, which purpose is only to host the objects from the first family so I can reference them, but I'm looking for slicker solution that doesn't require a feeder.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Confirmed not currently possible by Ashley some time ago - construct.net/en/forum/construct-3/how-do-i-8/change-sampling-mode-runtime-144232

    It's technically difficult to support because only WebGL 2+ supports changing the sampling mode, and it's not yet widely supported enough to trust that it will work everywhere.

    I even took a look at the Addon SDK and there only GetSampling() method ( construct.net/en/make-games/manuals/addon-sdk/runtime-reference/runtime ) and no way to set a new one and if it's not there it probably doesn't exist.

  • You could, but I'm not sure you'd want to. See, there are as many aspect ratios and screen resolutions as there are devices out there and if you're not making a project that ONLY fits your device then you need to think about supporting the rest. That's why there are different types of scalings.

    I would like to forward your attention to this tutorial which should have it explained in more detail - https://www.construct.net/en/tutorials/supporting-multiple-screen-17

  • Using a function is fine, however, in this case that would be the same as ploping my code directly on the condition check and not something I want. On a smaller project it might pass, but when it spans multiple event sheets where I want different code logic to stay grouped together I prefer to do a "trigger".

    I am familiar with the "wait 0" approach and it does in fact work, being confirmed by Ashley multiple times, yet it still seems so hacky to me, I don't know why we can't have "wait end of tick" or "wait next tick" kind of actions to make it official.

  • You do not have permission to view this post

  • This is not the most accurate approach by any means, but something you might try first:

    1. Get all your car sprites and put them in a family, call it "cars" for example.

    2. Then add instance variable to that family called "car_number" and in your layout select all 4 cars and give them unique car numbers (from 1 to 4)

    3. Create a new sprite object, call it "finish_line" (if you don't have one already) and place it at the finish... line

    4. Create a new text object, call it "leader" and place it where you want to have it shown on the layout

    4. In the events sheet do the following:

    Origin points matter in this case, so you might want to create new ones if you want further accuracy.

  • You do not have permission to view this post

  • I tried searching for quite a bit, but either my terminology is wrong or there just isn't much information about this topic.

    I want to create an event condition that acts similar to the built in triggers - if a condition is met during this tick -> do this. For example, I found the built in "Browser -> On Resized" trigger unreliable for my purposes (also I need the exact canvas dimensions anyways), so I wrote something similar to this:

    What I would like, however, is to not have to manually set the boolean to false at the end there, but instead automatically do that the the end of a tick, making sure that events that check that boolean would have time to run. How would I go about that? If there are any other solutions I'm open for suggestions.

    Thanks!

    Tagged:

NicotineLL's avatar

NicotineLL

Member since 4 Jan, 2015

Twitter
NicotineLL has 2 followers

Trophy Case

  • 9-Year Club
  • Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x2
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • Email Verified

Progress

15/44
How to earn trophies