| Mirage Source http://miragesource.net/forums/ |
|
| Changing the movement sequencing. http://miragesource.net/forums/viewtopic.php?f=201&t=3079 |
Page 1 of 1 |
| Author: | wisefire [ Fri Nov 23, 2007 3:06 am ] |
| Post subject: | Changing the movement sequencing. |
Ok So ive created my own system for the movement, Way more sprites. Now I have to add them. I understand how the move system works, Sort Of. ------------------------------------------------------------------------------------------------ I learned from using advocates system and replacing a part in Sub BltPlayer with; SPOILER: (click to show)
------------------------------------------------------------------------------------------------ Now the thing I need to know is, How do I change how many sprites there are for each direction? Like when you 1st use MS there are 3 Backward, 3 Forward, 3 Left and 3 Right. Well I need to change it so; There are 7 Backward, 7 Forward, 9 Left and 9 Right. Any Ideas on what to do? |
|
| Author: | Lea [ Fri Nov 23, 2007 5:04 am ] |
| Post subject: | Re: Changing the movement sequencing. |
Basically, Anim is set to a number representing the frame. From left to right for each sprite, they are 0, 1, 2, 3... So basically, you need to do a check and set Anim to the correct number when the time is appropriate |
|
| Author: | wisefire [ Fri Nov 23, 2007 5:53 am ] |
| Post subject: | Re: Changing the movement sequencing. |
Dave wrote: Basically, Anim is set to a number representing the frame. From left to right for each sprite, they are 0, 1, 2, 3... So basically, you need to do a check and set Anim to the correct number when the time is appropriate Yeah. Thats what I was looking at. But is there a defualt Anim? Or could I just throw the new one in and it start on the correct "0" for each direction? |
|
| Author: | Robin [ Fri Nov 23, 2007 9:47 am ] |
| Post subject: | Re: Changing the movement sequencing. |
Code: rec.Left = (GetPlayerDir(Index) * 3 + Anim) * PIC_X Change that 3 to the amount of frames you want per direction. It's near the bottom of BltPlayer. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|