02-02-2009, 02:32 PM
in bltnpc and player for spells you can do this
Player
With rec
.Top = 0
.Bottom = DDSD_Spell(SpellNum).lHeight
.Left = Player(Index).SpellAnimations(i).FramePointer * (DDSD_Spell(SpellNum).lWidth / 12)
.Right = .Left + (DDSD_Spell(SpellNum).lWidth / 12)
End With
NPC
With rec
.Top = 0
.Bottom = DDSD_Spell(SpellNum).lHeight
.Left = MapNpc(MapNpcNum).SpellAnimations(i).FramePointer * (DDSD_Spell(SpellNum).lWidth / 12)
.Right = .Left + (DDSD_Spell(SpellNum).lWidth / 12)
End With
ya i removed the new cases you added and it seemed to speed the fps up a bit ^^.
Player
With rec
.Top = 0
.Bottom = DDSD_Spell(SpellNum).lHeight
.Left = Player(Index).SpellAnimations(i).FramePointer * (DDSD_Spell(SpellNum).lWidth / 12)
.Right = .Left + (DDSD_Spell(SpellNum).lWidth / 12)
End With
NPC
With rec
.Top = 0
.Bottom = DDSD_Spell(SpellNum).lHeight
.Left = MapNpc(MapNpcNum).SpellAnimations(i).FramePointer * (DDSD_Spell(SpellNum).lWidth / 12)
.Right = .Left + (DDSD_Spell(SpellNum).lWidth / 12)
End With
ya i removed the new cases you added and it seemed to speed the fps up a bit ^^.