RPGWatch Forums - View Single Post - Lucky Day's Wizard War! for Android development thread
View Single Post


September 14th, 2013, 23:39
To Oppugn with Sortilege!

this is what studying the dictionary gets you.

OK, I just determined the cause of the AI making multiple attacks. The enemy wizards were not casting one spell then physically attacking with a false image, they were casting any spell they qualified for.

For some stupid reason Android/Java is treating "else if" like it was just "if". It should quit the whole nested if statements as soon as it gets one hit. This is called a "shortcut" and at compile time its really efficient. I've had to add a "boolean done = false" and change it to true for every flow group when it gets a hit. I shouldn't have to do that. At least it works like its supposed to now.
Developer of The Wizard's Grave Android game. Discussion Thread:
Lucky Day is offline

Lucky Day

Lucky Day's Avatar


Join Date: Oct 2006
Location: The Uncanny Valley
Posts: 3,824