Results 1 to 2 of 2
Thread: Why. Does. This. Not. Work.
- 04-06-2012, 05:46 AM #1
Member
- Join Date
- Apr 2012
- Posts
- 1
- Rep Power
- 0
Why. Does. This. Not. Work.
So, I'm self-teaching myself Java, for about three months now. For this program, I'm using objectdraw for the visual elements. Java and objectdraw are both latest versions. This program is a casting simulator in the style of Magicka, where you can combine elements. What I'm trying to have it do is display the spell type (AoE or bolt) first, and then two possible elements. ie; "A bolt of ice and water" or "An area attack of electricity and arcane power." However, it's displaying as "A bolt of ice.ice and water.water and". This is because in onMousePress there is a series of ifs for each element. Java seems to be seeing the "second" boolean as true, though I know that it should be false by default, and I haven't declared it as true. This is really kicking my ass. Any help?
[Java] CastingSys - Pastebin.com
PS: Ignore the element1 and element2 Strings, they are for something later.
- 04-06-2012, 08:50 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
Re: Why. Does. This. Not. Work.
In your code I see things such as:
Java Code:if (second = true); ... if (third = false); ...
kind regards,
JosBuild a wall around Donald Trump; I'll pay for it.
Similar Threads
-
applet call dll work in Win2000 but not work in WinXP
By manhcuongtin4 in forum Java AppletsReplies: 1Last Post: 07-14-2011, 02:45 PM -
Getting SWT app to work on a different OS
By Ravioli in forum SWT / JFaceReplies: 0Last Post: 02-20-2011, 10:35 AM -
Cant seem to get this to work
By nivekeleets in forum Java 2DReplies: 4Last Post: 11-13-2010, 08:09 PM -
Why won't this while loop work?
By trueblue in forum New To JavaReplies: 6Last Post: 05-23-2009, 09:10 PM -
how would i get this to work...?
By deeadeed in forum New To JavaReplies: 6Last Post: 12-06-2007, 03:58 AM
Bookmarks