spacedoubt's Recent Forum Activity

  • nice games guys!!

    so, come on ludum dare!! #ld48

    \o/

    I'm in!!

    We need some more C2ers!!

    http://www.ludumdare.com/compo/

  • While Scirra was down last night, I took the time and finally got all my music uploaded to a soundcloud if anyone wants to check it out. It's all very video gamey. Everything from Ambient Soundscapes, to Electronic Beats, to Slow Jazz.. Even a little gospel music I wrote for the devil. <img src="{SMILIES_PATH}/icon_twisted.gif" alt=":twisted:" title="Twisted Evil">

    If anyone ever needs any music for their games, here's what I do:

    http://soundcloud.com/jadecupmaidhands

  • unbounded + walls = any size you like.

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If this happens, I want to contribute music!

spacedoubt's avatar

spacedoubt

Member since 15 Jul, 2014

Twitter
spacedoubt has 1 followers

Connect with spacedoubt

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies