Aggrivating bug

Non-platform specific questions.

Aggrivating bug

Postby Freddy » Sat Mar 01, 2008 7:24 pm

I am making a fighting game/demo/experiment with GE. I have a falling down animation for the ai when it runs out of hp. There are two problems though. One is a glitch in GE, and the other is just an obsticle I will have to figure out. Heres the glitch: I went to draw actor ->script editor :
Code: Select all
if(CHP <1 && animindex !=8 || animindex !=9)
{
 change animation bla bla bla
}


What happens is that even though the "CHP" is 15, the script still runs. (this is the bug part)
The other thing that happens, is the other part of my code (not mentioned) acts against this section. For example: The AI moves to the player, and attacks. When the "CHP" is less than 1, it gets stuck between doing the other thing that it is supposed to do, and changing its animation to falling down.

If anyone has advice for me, I would like to here it. :)
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: Aggrivating bug

Postby makslane » Sat Mar 01, 2008 7:56 pm

You must use:

Code: Select all
if(CHP <1 && (animindex !=8 || animindex !=9))
{
}
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Aggrivating bug

Postby Freddy » Sun Mar 02, 2008 12:39 am

Oh :oops: , thanks.
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron