I don't get this coding

  • squiam
    23rd Feb 2011 Member 0 Permalink
    for(rx=-1; rx<2; rx++) <br /> for(ry=-1; ry<2; ry++) <br />'This code simply means “any particle touching a heater particle”.'
    I probably sound like a moron but how do those numbers, letters and symbols work out into “any particle touching a heater particle”. I'm not actually stupid so i'll make an attempt to understand any explanation given, but i don't really get any part of step 4 on this page (https://powdertoy.co.uk/Wiki.html?id=coding-tutorial).
  • devast8a
    23rd Feb 2011 Former Staff 0 Permalink
    Read up on: http://cprogramminglanguage.net/c-for-loop-statement.aspx

    Essentially.
    rx starts at -1
    The for loop will execute the body while rx is less than 2.
    each execution of the body rx increases by 1.
    (The same happens for ry)
  • squiam
    23rd Feb 2011 Member 0 Permalink
    so after i've pressed the green debug button, and the window comes up down the bottom, what do i do next to complete the compiling
  • Dragonfree97
    23rd Feb 2011 Member 0 Permalink
    it's done
    as long as there is no errors
  • squiam
    23rd Feb 2011 Member 0 Permalink
    it still won't show on any powder toy windows though. sorry about this, i saw gamerboy8864's video and he looks around my age so i thought i'd try modding.
    actually it says the system cannot find the file specified and it can't start the program
  • HeyJD
    23rd Feb 2011 Member 0 Permalink
    @squiam
    It look at the output section. Does it have an error?
  • squiam
    23rd Feb 2011 Member 0 Permalink
    it says the system cannot find the file specified and it can't start the program
  • Dragonfree97
    23rd Feb 2011 Member 0 Permalink
    You need to copy the .dll files from your regular tpt folder into the folder where your new .exe is
  • squiam
    23rd Feb 2011 Member 0 Permalink
    what are the actual .dll files cause i can't find them
  • Dragonfree97
    23rd Feb 2011 Member 0 Permalink
    SDL.dll
    libbz2.dll
    msvcr100.dll