Esta es la parte que metira error
- Device_Box_Textured_Render_Advance Grh_Index, _
- screen_x, screen_y, _
- GrhData(Grh_Index).pixelWidth, GrhData(Grh_Index).pixelHeight, _
- rgb_list, _
- GrhData(Grh_Index).sX, GrhData(Grh_Index).sY, _
- width, height, alpha_blend, Grh.angle
Este es el sub completo
- Private Sub Grh_Render_Advance(ByRef Grh As Grh, ByVal screen_x As Integer, ByVal screen_y As Integer, ByVal height As Integer, ByVal width As Integer, ByRef rgb_list() As Long, Optional ByVal h_center As Boolean, Optional ByVal v_center As Boolean, Optional ByVal alpha_blend As Boolean = False)
- '**************************************************************
- 'Author: Juan Martín Sotuyo Dodero (juansotuyo@hotmail.com)
- 'Last Modify Date: 11/19/2003
- 'Similar to Grh_Render, but let´s you resize the Grh
- '**************************************************************
- Dim tile_width As Integer
- Dim tile_height As Integer
- Dim Grh_Index As Long
- 'Animation
- If Grh.Started Then
- Grh.FrameCounter = Grh.FrameCounter + (timerTicksPerFrame * Grh.Speed)
- If Grh.FrameCounter > GrhData(Grh.grhindex).NumFrames Then
- 'If Grh.noloop Then
- ' Grh.FrameCounter = GrhData(Grh.GrhIndex).NumFrames
- 'Else
- Grh.FrameCounter = 1
- 'End If
- End If
- End If
- 'Figure out what frame to draw (always 1 if not animated)
- If Grh.FrameCounter = 0 Then Grh.FrameCounter = 1
- Grh_Index = GrhData(Grh.grhindex).Frames(Grh.FrameCounter)
- 'Center Grh over X, Y pos
- If GrhData(Grh.grhindex).TileWidth <> 1 Then
- screen_x = screen_x - Int(GrhData(Grh.grhindex).TileWidth * (base_tile_size \ 2)) + base_tile_size \ 2
- End If
- If GrhData(Grh.grhindex).TileHeight <> 1 Then
- screen_y = screen_y - Int(GrhData(Grh.grhindex).TileHeight * base_tile_size) + base_tile_size
- End If
- Device_Box_Textured_Render_Advance Grh_Index, _
- screen_x, screen_y, _
- GrhData(Grh_Index).pixelWidth, GrhData(Grh_Index).pixelHeight, _
- rgb_list, _
- GrhData(Grh_Index).sX, GrhData(Grh_Index).sY, _
- width, height, alpha_blend, Grh.angle
- End Sub
Porfavor necesito ayuda gracias.




73![Newbie [1] Newbie [1]](./images/ranks/Rango0.gif)

![Dragon Ancestral [4] Dragon Ancestral [4]](./images/ranks/Rango33.gif)
![Newbie [4] Newbie [4]](./images/ranks/Rango3.gif)
