> No I don't because the code says "choose(0,90,180,270)" or a variation of that and it always changes depending of the position of sprite, like for example if i have walls in the north and south the code does "choose(0,180)"
>
> And I have a code for every single possible combination in between a wall at every side, and a wall and no side.
>
Well after the choose() expression the direction is chosen right?
So that direction should determine the animation..
Maybe to make it easier on yourself, you could set an instance variable on the sprite to the choose() and use that instance variable for setting the animation..
Another way, if this choose sets the bullet direction, you might also be able to add a condition
for each sprite
system compare two values: sprite.bullet.angleofmovement = 180
> set animation
Heh, actually I just finished doing that changing the choose() to pick a variable and came back to the thread to see it recommended, and yes it works much better now.