Jump to content
IGNORED

animation value


TXG/MNX

Recommended Posts

  • 3 weeks later...
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?

  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...