ASB's Forum Posts

  • Hey C2 friends,

    I'm building a desktop application designed for continuous monitoring, so it should actually work all the time. (Designed for PC, exported in NW.js)

    So I need to prevent it from suspending, even when the user minimizes the window.

    Is it possible?

    And while we're on the subject, is it possible to minimize the program to the system tray?

    It is really important, and I'd appreciate any idea.

    Thanks in advance.

  • Hey guys ,

    I want to allow my users to download a simple text file so that they can open it in Notepad or something similar.

    The text is presented in a Text object, and I use [Browser > Invoke download of string] with the Text object .Text expression.

    The problem is that the downloaded file have no line breaks, and all the text appears as one very long line.

    Of course, the text is displayed properly on screen, with all line breaks, and no matter what I tried, every time I download the string to my computer, all line breaks are gone.

    Did you heard about this problem?

    Does anyone have a solution?

    Thanks in advance,

    Amit.

  • Well done!

    I played a couple times and loved it both times. It got intense trying to get the power ups among all the traps .

    Thanks, I'm glad you liked it.

  • Hi fellow C2 creators,

    Check out my new game: JumpCar!

    https://goo.gl/eSBQA1

    A fast-paced and enjoyable car ride. use the floor, walls, and even the ceiling as your road. Avoid the red panels, collect the green power-ups, and go as far as humanly possible.

    And of course, I'd love to hear your comments.

    Amit.

  • interesting...

    And fun!

    Wow! It's cool that u can play with your own pictrures!!!!

    Thanks, the next step is to let players share these pictures with their friends.

  • Hi guys,

    I finaly published one of my games to Google play.

    It is a simple 2D puzzle that has 2 game modes (Color and Image) and combines logical thinking, planning ahead, and color coordination.

    Here's a short demo video I made for the game:

    https://youtu.be/ckckn9XIWwc

    Download Cubelo now from Google play: (free)

    https://play.google.com/store/apps/details?id=app.cubelo.alpha

    Current built 8.19.0

    Todo list:

    • Picture sharing, creating 'challenges' to encourage sharing on social networks.
    • Achievements system (through Google play)
    • Adding Arcade mode, for a continuous play.

    I'd love to hear your comments, and hope you enjoy.

    Amit.

  • . AxeSaber felixsg

    You can use the hashtags (#) of the objects to know when the user clicks on an object that is inside the Iframe, and what object was it.

    here is a very simple example: LINK

    and here is its .capx: CAPX

    I hope it is usefull.

    you can also use ? instead of #, depends on your needs and what suits you.

  • You can get around that (sort of) ...

    In Python I can write Round(Variable2, 4), when 4 represents the amount of decimal places which the software needs to round.

    It is equal to (Variable2 * 10000) / 10000

    Does anyone know if there is anything like that in C2?

  • ok man that's cool! sorry for the smiley face It looks great.

    Thanks

  • In C2 ? Seriously though, which language are you using for that? I just tried the 1.2 + 1.0 in C++ with similar results.

    Yes, in C2, it looks something like this:

    I use a Python server to connect to the sensors and MatLab for the functions, but all of the graphics calculations are done within the C2.

  • Strange indeed, no problem on addition. I understand if this is involve multiplication/division problem, but substraction?

    That's what I thought.

    It is rounding error. Just don't expect exact results with real (decimal) numbers.

    Try adding 0.1 to variable2 twelve times instead of 1.2 one time. You will get 2.200000000000001

    But it will display in a text field as 2.2

    I am building a software that displays advanced graphs for external sensors system, the entire software is one big math problem.

    Of course, once I start division, multiplication, and other mathematical manipulations, I am aware of the floating point Inaccuracy.

    In case of 1.2 - 1 however, I do not expect it.

  • Hey spacedoubt,

    Thanks for the comment.

    I know about the floating point issue, but I do not think it is valid here.

    After all, if I do: Set Variable2 to 1.2 - 1, Variable 2 will equal 0.2.

    And the example I gave is not so different.

  • A mathematical bug

    Sometimes the software calculates decimal numbers incorrectly.

    For example, instead of 0.2 it calculates 0.1999999, and sometimes 0.200000001.

    I do not know why this happens, but it is repetitive.

    Attach a Capx

    https://googledrive.com/host/0B5et6AUuw ... 20Bug.capx

    Description of Capx

    It is a very short CAPX, so here's a picture:

    Steps to Reproduce Bug

    Just run the program with the debugger running, and see the bug.

    Observed Result

    Variable2 gets incorrect value.

    Expected Result

    Variable2 should be equal to 0.2

    Affected Browsers

    Tested on Chrome, Firefox, and Node-Webkit

    Operating System and Service Pack

    Win7

    Construct 2 Version ID

    I'm currently using r183, but I know that the bug was also in previous versions.

  • Hey, armaldio.

    Thanks! This is a great plugin.

    I use it already (for sending Emails), and it works great.

    If you can add attachements it would be even more wonderful!

    By the way, it is important to note that the Mandrill free plan is 'limited' to send up to 12,000 emails per month, or up to 250 emails per hour.

    (I think it's more than enough)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Anyone?... Anything?... No ideas?