Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more sprite attribute animations #37

Open
paulossilva opened this issue Sep 21, 2020 · 1 comment
Open

Add more sprite attribute animations #37

paulossilva opened this issue Sep 21, 2020 · 1 comment

Comments

@paulossilva
Copy link

paulossilva commented Sep 21, 2020

The most common way of animating sprites in the ZX Spectrum Next is by changing its pattern every few frames to make the movement illusion of an item on screen. Other ways of doing animation is by changing other sprite attributes, like palette offset (or by changing a single palette index), rotation, scale and mirroring.

It would be really useful to add animation support considering these sprite attributes. This would help new and seasoned developers to try out and discover new ways of animating sprites, which would be a much harder/slower process to try out by coding otherwise.

Consider that some animations take more the two frames to complete. For example, an explosion could take 3, 4 or even up to 5 frames to displayed in its entirety.

Thus, ideally, a sprite animation tool would need to support:

  1. A configurable number of frames (this feature is already available on your animation tool)
  2. To optionally set a few sprite attributes on a frame basis. For instance, change a palette colour index in the second frame, alongside changing its pattern, or even rotate it.
  3. To apply overall options to the animation (I think the ones you have already implemented are great, so leave it as it is)

Possible examples of animation changing the palette offset/index is to illustrate a player death by electrical shock or a spaceship collecting a power-up.

@paulossilva paulossilva changed the title Add other sprite attribute animations Add more sprite attribute animations Sep 21, 2020
@paulossilva
Copy link
Author

I noticed that you are using the word Frames in the UI to refer to both the animation frame and pattern number used in that frame. You might need to change that and split up both numbers, so that one could define the pattern number 12 in the frame number 1 and so on. It will make more sense when adding relative sprites to the mix as you could change an anchor and/or relative sprite pattern in each frame.

@remy remy added the animation label Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants