Mirage Source http://miragesource.net/forums/ |
|
Sprite Animation Bug Fix http://miragesource.net/forums/viewtopic.php?f=184&t=5369 |
Page 1 of 73 |
Author: | Azrael [ Sun Apr 05, 2009 1:18 am ] |
Post subject: | Sprite Animation Bug Fix |
I probably wouldn't have noticed this if I wasn't making my own sprites but there are some minor errors in modDirectDraw7 which cause the wrong sprite rec to be drawn for the Up and Left directions. in modDirectDraw7 find the Sub BltPlayer, the check for animation currently looks like this : Code: ' Check for animation Anim = 0 If Player(Index).Attacking = 0 Then Select Case GetPlayerDir(Index) Case DIR_UP If (Player(Index).YOffset < SIZE_Y / 2) Then Anim = 1 Case DIR_DOWN If (Player(Index).YOffset < SIZE_Y / 2 * -1) Then Anim = 1 Case DIR_LEFT If (Player(Index).XOffset < SIZE_Y / 2) Then Anim = 1 Case DIR_RIGHT If (Player(Index).XOffset < SIZE_Y / 2 * -1) Then Anim = 1 End Select Else The condition on both the up and left direction Ifs statement needs to be greater than, like so: Code: ' Check for animation Anim = 0 If Player(Index).Attacking = 0 Then Select Case GetPlayerDir(Index) Case DIR_UP If (Player(Index).YOffset > SIZE_Y / 2) Then Anim = 1 Case DIR_DOWN If (Player(Index).YOffset < SIZE_Y / 2 * -1) Then Anim = 1 Case DIR_LEFT If (Player(Index).XOffset > SIZE_Y / 2) Then Anim = 1 Case DIR_RIGHT If (Player(Index).XOffset < SIZE_Y / 2 * -1) Then Anim = 1 End Select Else The same will also need to be done under the BltNPC Sub. |
Author: | wanai [ Tue Jan 11, 2022 2:51 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Econ |
Author: | wanai [ Tue Jan 11, 2022 2:52 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
129.7 |
Author: | wanai [ Tue Jan 11, 2022 2:53 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Bett |
Author: | wanai [ Tue Jan 11, 2022 2:55 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Bett |
Author: | wanai [ Tue Jan 11, 2022 2:56 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Erns |
Author: | wanai [ Tue Jan 11, 2022 2:57 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Volu |
Author: | wanai [ Tue Jan 11, 2022 2:58 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Tire |
Author: | wanai [ Tue Jan 11, 2022 2:59 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Kaur |
Author: | wanai [ Tue Jan 11, 2022 3:00 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
XVII |
Author: | wanai [ Tue Jan 11, 2022 3:01 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Ryan |
Author: | wanai [ Tue Jan 11, 2022 3:02 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Sing |
Author: | wanai [ Tue Jan 11, 2022 3:04 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Tesc |
Author: | wanai [ Tue Jan 11, 2022 3:05 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Tesc |
Author: | wanai [ Tue Jan 11, 2022 3:06 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Orie |
Author: | wanai [ Tue Jan 11, 2022 3:07 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
John |
Author: | wanai [ Tue Jan 11, 2022 3:08 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Tefa |
Author: | wanai [ Tue Jan 11, 2022 3:09 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Symp |
Author: | wanai [ Tue Jan 11, 2022 3:10 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Zero |
Author: | wanai [ Tue Jan 11, 2022 3:11 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Star |
Author: | wanai [ Tue Jan 11, 2022 3:12 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Gone |
Author: | wanai [ Tue Jan 11, 2022 3:14 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Dave |
Author: | wanai [ Tue Jan 11, 2022 3:15 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Mich |
Author: | wanai [ Tue Jan 11, 2022 3:16 am ] |
Post subject: | Re: Sprite Animation Bug Fix |
Keny |
Page 1 of 73 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |