Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 17 Apr 2009
Offline Last Active Oct 18 2013 09:34 AM

Posts I've Made

In Topic: Looking for a good pattern

11 December 2012 - 11:36 AM


That sounds like a good direction to go in. Items can then have a nice area of influence, and pick any AI within that area and apply their effect to those objects. Then as you said, the AI object would know what effects it responds to or what one it ignores.

Thanks for the help!


In Topic: Resetting States in Slick2D

24 July 2012 - 12:06 PM

If I remember correctly, the enter method is called whenever you transition into the state. So make sure you are overriding that method, and reset any variables to the default state.

In Topic: Torque 3D panning?

12 October 2009 - 05:03 AM

You are probably better off asking Torque related questions on the GarageGames forums, you would probably get a quicker answer there.

I'm not exactly sure what movement you are talking about. In the Torque editor, you move the camera around with the wasd keys, like a first person shooter. If the camera is attached to the player, you can hit ctrl-c to detach and just fly around. I'm also assuming you are talking about the world editor, and not something like Creator...

Anyway, your best bet is to post your question on GG.

In Topic: Java to C++ conversion benefits

09 October 2009 - 07:51 AM

Why not just use OpenGL in Java? That would give you hardware accelerated graphics, without having to redo all of the work you've done so far.

Check out the LWJGL library, and convert your graphics and rendering code to use that rather than AWT.

In Topic: need help in JAVA

05 October 2009 - 02:34 AM

The problem is you are accessing amountDeposited like its a method call. Take a look at the line again:

valueInMaturity = Math.pow(amountDeposited(1 + interestRate/100), durationInYears);

My guess is you want to multiply the amountDeposited variable by 1 plus the interest rate divided by 100. You are missing the * before the parentheses. You are most likely getting an error that it can't find the method amountDeposited.