KodeMonkee's Forum Posts

  • 14 posts
  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Doesn't work from NWjs.UserFolder, either. This is most bothersome.

    Most bothersome indeed.

  • Wish very hard. VERY hard.

  • Thank you for your replies.

  • 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.

  • Holy wow, Batman! I always viewed the file in Notepad. The thread is indeed correct. When I make a test and open it in Wordpad.. newline works as one would wish for. Since I'm planning on printing from Wordpad on the commandline anyway, this is perfect. Thank-you, sir! Thank-you!

  • Hello readers.

    I'm using NWjs quite successfully so far for file I/O, but have reached a point where I need to be able to layout the text in a file for printing. The issue is that writing or appending to a file using NWjs writes as a single line. I know about the newline system expression, but that doesn't actually format the output text in the file. I can't find a reference to any system expression such as asc() that allows one to provide an ASCII value or I would try using a carriage return. Does such a thing exist? My other solution is to write a HTML string with the formatting tags I need and view the output/print as HTML.

    I would prefer not to use a separate plugin just for this single purpose, but I'd like please anyone's suggestions or comments on how to easily lay out and format my output, whether using NWjs or not.

    Thank-you.

  • 14 posts