TXG/MNX Posted December 5, 2020 Share Posted December 5, 2020 Hi, In the rapinit there is this line: dc.l ani_rept ; animloop What value shout ani_rept be to use the once option ? Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 5, 2020 Share Posted December 5, 2020 ani_once Quote Link to comment Share on other sites More sharing options...
Clint Thompson Posted December 22, 2020 Share Posted December 22, 2020 On 12/5/2020 at 6:08 PM, CyranoJ said: ani_once The problem with ani_once is that after the animation is done, it's gone forever, right? (or is there a way to call or reactivate the image again?) On 12/5/2020 at 2:03 PM, TXG/MNX said: Hi, In the rapinit there is this line: dc.l ani_rept ; animloop What value shout ani_rept be to use the once option ? Why not just use R_sprite_animspd and a DIM variable with a frame counter to move the amount of frames you want and then idle it/deactivate the image until (or if) you need it again? 1 Quote Link to comment Share on other sites More sharing options...
+CyranoJ Posted December 22, 2020 Share Posted December 22, 2020 2 minutes ago, Clint Thompson said: The problem with ani_once is that after the animation is done, it's gone forever, right? (or is there a way to call or reactivate the image again?) Until you reset the animloop and cur_frame values, and then set sprite_active again. Your solution above is better though. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.