swak / flare-engine

Automatically exported from code.google.com/p/flare-engine
0 stars 0 forks source link

Moving sprites (player, enemies, powers) disappeared while fighting teleporting bug #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Fight a teleporting bug in the cave map
2. ???
3. Viola

While fighting one of the teleporting bugs in Cave level 1 all moving sprites 
disappeared: http://i54.tinypic.com/f44bap.png

Except that enemies/player/powers don't show up, the game plays like normal.

Original issue reported on code.google.com by ceni...@gmail.com on 13 Mar 2011 at 11:46

GoogleCodeExporter commented 9 years ago
The only way I know of that this can happen is if any Renderable somehow leaves 
the map.  So perhaps the teleporting bug was targeted on uninitialized 
variables, left the map, and broke sprite rendering.

TODO: check initialized variables on enemy targeting (e.g. last seen).

Original comment by pfunk...@gmail.com on 13 Mar 2011 at 11:50

GoogleCodeExporter commented 9 years ago
I've noticed a few times that chasing enemies with a ranged attack will 
occasionally turn and shot in a random direction when they lose sight of the 
player. This is not because of the "targetting where last seen" AI; I'm talking 
about suddenly turning the opposite way and firing. This is likely related.

Original comment by ceni...@gmail.com on 16 Mar 2011 at 1:06

GoogleCodeExporter commented 9 years ago
Creatures facing an unusual direction when they stop giving chase is unrelated. 
 Basically a creature is moving towards a specific target (x,y).  When they 
finally reach it, their speed might take them a couple units past (x,y) so they 
turn around.  To soften this behavior I need to make them stop "patrolling" 
when they are in melee range of (x,y).

Original comment by clintbel...@gmail.com on 16 Mar 2011 at 10:29

GoogleCodeExporter commented 9 years ago
With r359 fixing some empty space issues, I want to see if we can still 
reproduce this bug.  If you see it in the wild let me know.

Original comment by clintbel...@gmail.com on 25 Apr 2011 at 4:21