Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

FlareQ01

4
Posts
A member registered 77 days ago

Recent community posts

(1 edit)

*this is the error you have now:

- curentAction = _action needs to be changed to currentAction= _action (You didnt spell then the same) 

some changes from the code I have are (not needed to change):

- In the statement if (!is_array(_targets)) _targets = [_targets]  _targets should be currentTargets ex: if (!is_array(currentTargets)) currentTargets = [currentTargets];

- At the line instance_create_depth(currentTargets[i].x,currentTargets[i].y,currentTargets[i].depth-1,obj_BattleEffect,{sprite_index : currentAction.effectSprite}) obj_BattleEffect is renamed from oBattleEffect just make sure its consistent with your naming. 

id need to see the code to help more, where is currentTargets getting assigned, is there any loop that its nested inside, and wheres thr function call being used.

check names is it currentTargets or currentTarget, check where currentTargets is being assigned in the code. something like _targets = currentTargets;. The error just states that when its being used it hasnt been set yet.