Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 28 Mar 2012
Offline Last Active Today, 06:36 AM

Posts I've Made

In Topic: Funniest line of code ever ?

18 July 2014 - 12:13 PM

I knew a guy who wrapped some code that would never be reached in:

if (superman > batman){
//some code


In Topic: very strange bug (when runing c basic arrays code)

30 June 2014 - 02:11 PM

Not to harp on you or anything, but you could literally step through every line in your code with a debugger and see which one is breaking your program.  They're not that hard to use and there are TONS of tutorials online.  

You've said repeatedly in this thread that you only want to find the alignment bug, but you keep refusing to use the tool that's specifically designed to do this.  

Debuggers help you find and fix bugs quickly

In Topic: Weird glitch in my tetris game

13 June 2014 - 09:39 AM

I can't really tell from your code, but it looks like your program does properly check for collisions and stores where those collisions are.  My intuition tells me that your program doesn't break after a collision is detected and skip to the next piece.  


If you have any logic that is supposed to do that in your code I'd put a breakpoint there and see if it is ever reached.  If not it should be pretty straightforward to implement happy.png  

In Topic: Gain power without being chosen one feeling

27 May 2014 - 12:09 PM

Making your hero not be the chosen one, while being the first person to find/use this power is gonna be tough.  When I think of a chosen one I picture someone who got their power from some external force because they're "special".  I'd try to focus on taking the "special" out of the equation.  Maybe your character is the only person who figured out the steps to gain said power, maybe everyone knows about the power but choose not to get it because it comes with irreversible consequences or cost, or maybe your hero happens to discover something previously that puts him under a curse that they don't notice until they're 2 seconds from death.


In short, try to avoid using the "I have powers because I'm me" cliche.

In Topic: Topdown wall collision, not working

27 May 2014 - 11:24 AM

A lot of your problems seem to come from bundling together all of your checks and causing conflicts.  Try separating your functions based on what direction your going and what collisions can happen in that direction to avoid more confusion.  For example if your moving up you only need to check for player top collisions.  You don't need to check whether or not you've collided with the bottom, left, or right walls.