hi !while making my new game i'v occourred in this frustrating bug. when i press the attack button , before the whip animation in the just direction start i see the whip in the opposite direction...
example:
<player1> is facing direction -->
i press the whip attack button
and before the whip animation begins in direction -->
i see this:
http://vampirereaper.altervista.org/bug.JPG
does anyone know how to solve this irritating problem? thx
EDIT: i've recorded a video and saved it in .gif, so you can see directly the problem
this is the code i've used for the whip. i've used 3 objects: the whip, the player and a 2 direction object which determines the direction of the whip. we will call this object "plus":
[always] set position "whip" x=0 y=0 relative to player
[player is facing direction --->] set direction of "plus" to --->
[player is facing direction <---] set direction of "plus" to <---
[direction of plus --->] set direction of "whip" to --->
[direction of plus <---] set direction of "whip" to <---
[direction of player --->] set direction of "whip" to --->
[direction of player <---] set direction of "whip" to <---
unfortunatly i think it can't be done. i tried to do it, but it seems that you can set the x and y position relative to an object only in couple, both together ç_ç.do you know how to do it? thanks however
ok, i've done the way you said, but the problem still exist ! ç_ç i'm putting so many efforts in this game that i don't want to ruin and delete the project for this little and irritating problem...thanks to you all however
Try this. Make two whip objects, one facing left, the other facing right. Now, if the player is facing right, use the right facing whip object, and vice versa. Simple enough?
99 percent chance that the above post is 100 percent correct.
It's just displaying the default direction animation of the whip for a split-second before it's corrected.
Best solution: Set the default direction of the whip object (in its properties) to up. Then, create an up-facing animation that's more or less blank. You don't even have to modify your code that way.
Perhaps the problem is a very simple one... hot spots at the wrong place? I recall times when I've done all these complex coordinate stuff, only to realise that the hot spots for the animation's all wrong. As they say, it doesn't matter how accurately you shoot, as long as your target moves, you'll still hit thin air...
BTW, nice graphics.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.