Working on AI behaviors
This commit is contained in:
@@ -868,6 +868,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
|
|
||||||
this.action_wander = function()
|
this.action_wander = function()
|
||||||
{
|
{
|
||||||
|
var newstate = STATE_NONE;
|
||||||
if ( this.sprite_canmove == false) {
|
if ( this.sprite_canmove == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -899,7 +900,6 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
this.update = function()
|
this.update = function()
|
||||||
{
|
{
|
||||||
var running = false;
|
var running = false;
|
||||||
var newstate = STATE_NONE;
|
|
||||||
|
|
||||||
if ( this.awareness_effect !== null ) {
|
if ( this.awareness_effect !== null ) {
|
||||||
if ( this.awareness_effect.alive == false ) {
|
if ( this.awareness_effect.alive == false ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user