Results 1 to 10 of 15

Thread: Glitch on my game

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Yeah, I'd just like to add that it's always best practice to avoid reusing ANY keywords or common language functions or you could end up having some crazy logic issues and errors in your programs. I try to think of nice alternatives myself.

    For example lets say you have a record that stores what "type" of object they are, well what do you call that variable to hold that value? Type would be terrible and would most likely cause an error preventing it from compiling. Instead I would try using "kind" (real life example!) as it does not conflict with the keyword type used to define different variable types.

    Oh and feel free to use the code button to post your code right in your post. It should work as long as it's not too long (long as in reallllllly long) User137's post is a good example of posting code of a decent size length.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  2. #2
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    Quote Originally Posted by WILL View Post
    Oh and feel free to use the code button to post your code right in your post.
    What code button ? I alway's have to type all the bb codes in manually on this forum

  3. #3
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Quote Originally Posted by Carver413 View Post
    What code button ? I alway's have to type all the bb codes in manually on this forum
    Ah then you never followed the directions for existing members who were migrated to the current vBulletin version of the site.

    Click here and see how you can turn on the WYSIWYG Editor for posting here on PGD! You are interested in what is under "Miscellaneous Options".

    Quote Originally Posted by smexhy View Post
    Thanks User137 and Will for your time , and i knew there was the function inc() but forgot bout it D:
    Not a problem. Starting out can seem a little daunting, but if you stick with it and don't always take the easy route you'll get all the ins and outs eventually. Taking a Computer Science class in your school will help greatly! It should cover most of the basic concepts of programming and should allow you to write code for just about any solution that can be thought up, save for the really advanced stuff.
    Jason McMillen
    Pascal Game Development
    Co-Founder





Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •