when you attack while walking you dont complete the whole attack I know why this is happening but i dont know how to fix it.
here is the link
http://scratch.mit.edu/projects/ftf841/2413414
Last edited by ftf841 (2012-04-04 17:13:50)
Offline
Oh, I see your problem.
The script for the animation for the Kirby Sprite is overtaking the script for when you attack.
To make it clear,
when you are walking, there is a script to make Kirby animate and move.
When you attack, the script for moving is still going and so the attacking animation gets overlapped.
A possible fix would be to, in the walking script, add something like:
when green flag clicked
forever if << key [left arrow v] pressed?> or <key [right arrow v] pressed?> or <key [up arrow v] pressed?> or <key [down arrow v] pressed?> and <not <key [z v] pressed>
And then from there, add your script for moving kirby. And keep all your other scripts.
That should fix the problem. If not, just ask.
Last edited by SOScratch (2012-04-04 20:03:39)
Offline
zammer990 wrote:
To fix this you could have a variable "attacking" and them have:
when gf clicked forever if <<<attacking> < [1]> and <[movement v]key> pressed>> animation
that didn't help
Last edited by ftf841 (2012-04-07 17:28:40)
Offline
I just looked at your code and I found 2 things: !) it's got loads of redundancies in for example the movement script double detects
2)I can't even comprehend half of it, the variables aren't clear and if you want someone to fix something it's better if they are
When I played your project I didn't find anything wrong anyway...
Offline
zammer990 wrote:
I just looked at your code and I found 2 things: !) it's got loads of redundancies in for example the movement script double detects
2)I can't even comprehend half of it, the variables aren't clear and if you want someone to fix something it's better if they are
When I played your project I didn't find anything wrong anyway...
when you played the game did you play adventure mode or vs because vs mode works completely fine
Offline