spacedoubt's Forum Posts

  • So what you're saying is when it comes down to the final battle between machines and humans, our best defense will be floating point numbers?

  • So is this the kind of thing that can't really be fixed? Cause it gets ugly fast in some pretty simple situations..

  • how strange...

    all this time, I thought .1 + .1 + .1 was .3

    math is even harder than I thought!

    (You're right, I'm amused...)

  • Actually, upon further inspection, 2, 3, and 4 and apparently numbers > 20 seem to work as expected and all other integers do what's described here.

  • Problem Description

    Adding 0.1 to a variable and displaying it as floor(variable) doesn't return 1 until it's more than 1 (though it works as expected for any other integer)

    EDIT: Having done my floating point homework, I rescind my bug report.

    Attach a Capx

    [attachment=0:1epoa2r5][/attachment:1epoa2r5]

    Description of Capx

    Click the button to add 0.1 to a variable which sets one text using floor and one without.

    Steps to Reproduce Bug

    • Click button 10 times Observed Result floored text still says 0 until 11th click, though 2 happens at 20, 3 at 30, etc.. Expected Result 10 clicks should be 1 Affected Browsers
      • Chrome: (?)
      • FireFox: (YES)
      • Internet Explorer: (?)

    Operating System and Service Pack

    Vista SP2

    Construct 2 Version ID

    173 (apologize if this has already been addressed in newer release)

  • silver coin > 10 will add 1 every tick while that is true. you don't want that at all.

    you're also only updating the counter on collision with gold coins.

  • make the silver coins add .1, and use floor(coincollect) instead of round for your text so it won't show partial coins.

    No silvercoin variable necessary.

    That's what I would do...

  • Welcome to the forum! I too am a musician pretending to be a game developer.

    Posting a capx will always get you better/faster help, but I'll take a stab and say try adding a "trigger once while true" event to that A button pressing stuff..

    I'd also recommend doing something other than this for your first project, particularly the tutorials and examples that come with C2.

    Good luck!

  • If this happens, I want to contribute music!

  • Big eyes all the way! Red bowties are best, though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In no particular order:

    Myst (alluvem!)

    Machinarium

    Maniac Mansion

    Morrowind (and other elder scrolls) (Guess I like 'M' games)

    Fallout 3 (+ NV)

    GTA 3, Vice City, San Andreas

    Everquest changed my life

    Zelda: A Link to the Past

    Goldeneye

    Super Mario Kart

  • I'm gonna do it

    This will be my first game jam

    I am excited

    (Haiku'd!)

  • Just replace the animations, not the actual sprites.

  • Yeah, me either.. heh..

    Your solution doesn't look too shabby!

  • Pretty sure I came across something in the forums recently that did this, but for the life of me, can't remember what I was looking for when I came across it. I do remember r0j0hound was the one who solved it (no surprise there). I'll see if I can't find it again..

    still got a couple of his capx links in my downloads folder

    see if these help:

    https://dl.dropboxusercontent.com/u/542 ... _phys.capx

    https://dl.dropboxusercontent.com/u/542 ... annon.capx