My problem is kinda weird to explain. And I suck at explaining things like this
Im using the default platform movement to control the enemies in my game (Im using custom movement for the player). They hit walls, bounce off them, and yeah. Like the Goombas in Mario games. But thats not the point.
Anyway, the problem is, I want to give them certain animation sequences, where they hop up and down. But because of the platform movement, if I give them an animation where they appear to 'jump', the default movement will force them to the ground. Ive seen other klik games where the platform enemies have 'hopping' animations for thier walking animation. So how do I pull it off?
Ive tried having all the frames the same size, with the same hotspots, and I just moved the graphic up a few pixels and then down in each frame, and then unchecking the 'fine detection' preference.
I assumed that fine detection is where TGF detects collisions when the object's graphic collides with something, rather than just the objects sprite box size thing colliding with something. But that didnt work for me.
"I assumed that fine detection is where TGF detects collisions when the object's graphic collides with something, rather than just the objects sprite box size thing colliding with something. But that didnt work for me."
it does do that.
It may make matter a lot easier for you to use custom for the baddies too. I for one have never have tried using built in movement for baddies so i can't help sort out the bugs.
It's very possible, but rather difficult: it takes a lot of fine-tuning to get a group of objects to all act in similar ways, but under very distinct values and conditions. Indeed, the easiest way would be to make one group that encompasses all movements - the enemies, the player, anything else - and whose actions can move them all at once without getting them confused with one another.
Which can be tricky, as groups tend to be.
I see. I tried making my own enemy AI, and it didnt turn out as well as planned. I need to find a good method to control many of one object at once, induvidually, without confusing one for another. Ill keep trying, but if anyone can steer me in the right direction, it would be great. I use alterable values to control them,(like AltValA = 0 falling, 1 = idle, 2 = moving, 3 = hurt, something like that)and set each value accordingly to make them behave properly (Like, when its done jumping, its time to fall, and every now and then, they will randomly stop , and then resume walking, etc). And flags to determine thier direction, all the basic stuff. I even have detection methods. I just need a way to treat each object induvidually, if you know what I mean.
But Custom enemy movements got my animation problems fixed, and cleared all the bugs that came with the default platform movement ^^
I just need to get problems like this fixed up. Help would be appreciated.