KodeMonkee's Recent Forum Activity

  • Ah ha! Yes! I knew i must have just been forgetting something and that explanation matches what the debug mode tells me when looking at variable values. And thanks! I was trying to figure out how to use loopindex somehow.

    Onya, mate.

  • Hello.

    This looks the same as other examples I can see, but my output is only a single vertical line of sprites instead of a page full.

    I have no clue! Please send halp!

    Screenshot:

    imgur.com/a/ENp02

  • It works for me now after swapping the NodeWebkit object for nwjs. Curious where the nwJS.UserFolder is at exactly tho. nwJS preview apparently uses its own location too.

    nwjs.UserFolder is usually (on Windows) C:\Users[USERNAME][/b]

  • Ahh! That's really close to the other way I was attempting, but obviously I was getting something wrong there as well.

    If I understand, checking 'UID !=' is what you mean by "can't reference two of the same object at the same time"? Because I had wondered about pick closest just picking itself and if it would.. So, I suppose my first Thingee instance is in fact doing that.

    I'm also trying to deepen my understanding on instances. I've since learned that I can just destroy the original and do away with that doublespeak at the top. It can even be destroyed before creating new instances. (the mind boggles)

    Sorry I couldn't just give the capx. Forum won't let me post links yet

    Thank-you very, very much for the help!!

  • I'm trying to understand picking instances with a simple project. I've searched for answers but I haven't found anything much to help un-confuse me, so I'm hoping someone can tell me what's going on.

    Simply, I'm attempting to 'Pick Nearest', but it seems to always pick the first instance... And I think the first (original sprite) doesn't pick successfully at all.

    The entire project:

    I read that I need to 'Pick All' to refresh the selection, so that's there. I also read that you can't pick an object in the same event it's created, but I don't think that's the problem? I know I'm derp. If you have suggestions for me on anything, please halp! I find the way C2 does events confusing often.

  • Doesn't work from NWjs.UserFolder, either. This is most bothersome.

    Most bothersome indeed.

  • Wish very hard. VERY hard.

  • Thank you for your replies.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello.

    For example, in another language I might write

    for (int i = 0; i < n; i + 3) {[/code:5hmp3ot9]
    
    To skip my loop index 3 at a time. What is the best way to achieve the same effect in C2?
  • I was pointed to the suggestion:

    "Try: round(N * 100) / 100

    for 2 decimal places, or 1000 for 3 decimal places, etc... "

    I hadn't thought of that. Ahh math. Is there anything you can't do?

  • Hello readers.

    I can't seem to find an easy way to round a float to a specified number of decimal places. For example, round(3.14159, 2) returns 3.14. Is there such an expression to do this in a similar manner or do I need to get tricksy? Perhaps regular expressions would do it? (But I don't really know how to use regex).

    Help or advice, please?

  • Do you have "NW.js" selected as the preview browser? I'm aware that NWjs needs to use it's browser (Chrome backend I believe?) to work correctly. That's all the advice I have. I'm new here, too.

    Sorry, I mean, when you export your project are you exporting as NWjs? I'm fairly sure you need to do that for it to work, same as having NW.js as your preview browser.

KodeMonkee's avatar

KodeMonkee

Member since 8 Sep, 2015

None one is following KodeMonkee yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies