Jump to content
IGNORED

Player animation.


STGraves

Recommended Posts

I still need to be able to combine down and up and left, so the !(not) is pretty important! I like else commands, and when I do 2D games (I mean games where there is no discernible foreground that the sprite enters or exits) I use it to stop the variable, but as it is I'm pretty sure I would lose the reflection if the direction was combined. I actually have a much longer set of controller based variables that are cancelled and/or activated to allow for jumping in both direction and using the special attack. If I were to 'else' the variable in this particular game then my upward walking animation or downward walking animation would activate on a combination of directions rather than the mirrored walking frames. What I wrote out was a simple example. I agree that things can be changed to free 1 byte here or there, or reduce cycles, however this is simple explanation. I was more emphasizing that the variable can be used in conjunction with a direction to control animation and also coordinate with a 'reflect player' command to mirror the sprite.

 

Anyone interested in using the above example for games should definitely take note!!

Edited by Papa
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...