FlatulenzaFiamm
Member
Greetings you magnificent bastards!
Once again I'm here to ask you for help!
This time is nothing memory related, but Event related.
Hear me out: I'm trying to use a 5 frame animation and then reverse it at the end. Since reversing it in the sprite editor costs memory, by making more frames, I decided to do this way:
_____________________________________________________
[ Create Event ]
Variable = Obj.rev 0
[ Step Event ]
Sprite "Druggeljug" = speed 1
[ End Animation Event ]
If Sprite "Druggeljug"...
then Change Sprite to "Druggeljug" = speed -1
then Set Variable Obj.rev to 1 (not relative)
If Sprite "Druggeljug"...
If Variable Obj.rev is 1...
then Change Sprite to "Druggeljug" = speed 1
then Set Variable Obj.rev to 0 (not relative)
_____________________________________________________
This, would have created a loop where the animation starts normal, but when it ends, it changes to it's own version but in reverse.
For some reasons, when the animation is in reverse, the Animation End Event doesn't execute.
Is there a reason for that? Or I just can't use this event for it?
Also, keep in mind that I'm using DRAG AND DROP, I'm not into coding yet, so I would really appreciate a solution from you guys that
can be replicated in DnD. If there is no solution with it, I'll accept a code, but please explain to me how it works the code you made up!
Thank you so much guys, I'll never thank you enough for the support.
I will appreciate even the smallest answer.
Once again I'm here to ask you for help!
This time is nothing memory related, but Event related.
Hear me out: I'm trying to use a 5 frame animation and then reverse it at the end. Since reversing it in the sprite editor costs memory, by making more frames, I decided to do this way:
_____________________________________________________
[ Create Event ]
Variable = Obj.rev 0
[ Step Event ]
Sprite "Druggeljug" = speed 1
[ End Animation Event ]
If Sprite "Druggeljug"...
then Change Sprite to "Druggeljug" = speed -1
then Set Variable Obj.rev to 1 (not relative)
If Sprite "Druggeljug"...
If Variable Obj.rev is 1...
then Change Sprite to "Druggeljug" = speed 1
then Set Variable Obj.rev to 0 (not relative)
_____________________________________________________
This, would have created a loop where the animation starts normal, but when it ends, it changes to it's own version but in reverse.
For some reasons, when the animation is in reverse, the Animation End Event doesn't execute.
Is there a reason for that? Or I just can't use this event for it?
Also, keep in mind that I'm using DRAG AND DROP, I'm not into coding yet, so I would really appreciate a solution from you guys that
can be replicated in DnD. If there is no solution with it, I'll accept a code, but please explain to me how it works the code you made up!
Thank you so much guys, I'll never thank you enough for the support.
I will appreciate even the smallest answer.