| |
Help:Now THIS is simple...right?, Sprite changing and Animation end?
cappy |
|

remember, cappy loves you.
![Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/happyheart.gif)

Group: Members
Posts: 959
Member No.: 3489
Joined: 27-March 07
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
| QUOTE (Grant @ Dec 29 2007, 11:06 PM) | I'm sorry, but I don't quite understand what you want to do, from your description.
Could you try explaining in more detail how each sprite (Up pose and Down pose) is supposed to animate?
Try explaining it in terms of specific subimages, like Image 0 and Image 1 and any other subimages of the animation of each, if each sprite has more than one animation subimage. |
Ok.  Mario's going up^^  ...And then down^^ Pretty much only 2 images. I'm not sure you'll need the speed but...0.2 -2 subimages
--------------------
| QUOTE (Mr. Aforcer @ Sep 21 2009, 09:51 PM) | | Bootylicious even. |
|
|
|
Grant |
|

John Freeman said
![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![Sprite Comp Winner Badge (2) [*]](https://archive.mfgg.net/html/badges/scg2.gif) ![Sprite Comp Top 5 Badge (2) [*]](https://archive.mfgg.net/html/badges/sct2.gif) ![Drawing Comp Winner Badge (2) [*]](https://archive.mfgg.net/html/badges/dcg2.gif) ![Drawing Comp Top 5 Badge (1) [*]](https://archive.mfgg.net/html/badges/dct1.gif)
![Minigame Comp Winner Badge (1) [*]](https://archive.mfgg.net/html/badges/mcg1.gif) ![Minigame Comp Runner Up Badge (1) [*]](https://archive.mfgg.net/html/badges/mcr1.gif) ![Secret Santa Badge [*]](https://archive.mfgg.net/html/badges/present.gif)

Group: Members
Posts: 8260
Member No.: 2900
Joined: 31-October 06
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
In that case, if what you want to do is change the image to the jumping one when he's moving upward and to the falling one if he's moving downward, then this is what you could do:
Each time Mario is jumping or falling, set the image_speed to 0. Each time he is walking or doing something else which requires an animation, set the image_speed to the ordinary value that you use for Mario's sprites.
Set the image_index to 0 if Mario's vspeed is less than 0 (i.e., if he's going up), and set the image_index to 1 if Mario's vspeed is greater than 0 (i.e., if he's falling down).
This way, Mario won't animate (no animation speed) if he's in one of the up/down poses, so he won't flip back and forth between the animations repeatedly while he's jumping. Also, the specific subimage of Mario's sprite will be set appropriately based on if he's going up or down (it will be Subimage 0 (jumping) if he's going up and Subimage 1 (falling) if he's going down).
This post has been edited by Grant on Dec 29 2007, 11:36 PM
--------------------
 | QUOTE (oh youtube trolls) | | u guys r retarded hippocrates |
| QUOTE (Piemanthe3rd) | | Pie is not random. I wish people would realize this. |
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
[ Script Execution time: 0.0521 ] [ 14 queries used ] [ GZIP Enabled ] [ Server Load: 0.52 ]
| |