Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO3.1]Sprite Walking!


Dzastin
 Share

Recommended Posts

@thezeus:

> I've been messing with blt; however, I'm having some trouble modifying it to use the following type of sprite.
>
> ![](http://i747.photobucket.com/albums/xx117/richconner/tadpole.jpg)
>
> The frame goes, up, down, left, right.  2 are walking and the final is attacking.
>
> Do you have any advice or assistance.  I appreciate any help beforehand.

I have the same problem what thezeus. Please, help me and he!
Link to comment
Share on other sites

```
' Check if completed walking over to the next tile
    If Player(Index).Moving > 0 Then
        If GetPlayerDir(Index) = DIR_RIGHT Or GetPlayerDir(Index) = DIR_DOWN Then
            If (Player(Index).XOffset >= 0) And (Player(Index).YOffset >= 0) Then
                Player(Index).Moving = 0
                If Player(Index).Step = 0 Then
                    Player(Index).Step = 2
                Else
                    Player(Index).Step = 0
                End If
            End If
        Else
            If (Player(Index).XOffset <= 0) And (Player(Index).YOffset <= 0) Then
                Player(Index).Moving = 0
                If Player(Index).Step = 0 Then
                    Player(Index).Step = 2
                Else
                    Player(Index).Step = 0
                End If
            End If
        End If
    End If
```
Thanks!
Link to comment
Share on other sites

@Dzastin:

> ```
> ' Check if completed walking over to the next tile
>     If Player(Index).Moving > 0 Then
>         If GetPlayerDir(Index) = DIR_RIGHT Or GetPlayerDir(Index) = DIR_DOWN Then
>             If (Player(Index).XOffset >= 0) And (Player(Index).YOffset >= 0) Then
>                 Player(Index).Moving = 0
>                 If Player(Index).Step = 0 Then
>                     Player(Index).Step = 2
>                 Else
>                     Player(Index).Step = 0
>                 End If
>             End If
>         Else
>             If (Player(Index).XOffset <= 0) And (Player(Index).YOffset <= 0) Then
>                 Player(Index).Moving = 0
>                 If Player(Index).Step = 0 Then
>                     Player(Index).Step = 2
>                 Else
>                     Player(Index).Step = 0
>                 End If
>             End If
>         End If
>     End If
> ```
> Thanks!

This did not work for the following sprite layout:

![](http://i747.photobucket.com/albums/xx117/richconner/722dcecf.jpg)

I would greatly appreciate any assistance on this code.  I have 288 sprites I'm working on in this format and converting them would simply be a big headache.
Link to comment
Share on other sites

Robin, I'm doing a little googling, and I think I get what you are saying.  I'll have to look and see how to do it.

Edit:  Thank you for the advice.  Learning photoshop batching is amazing.  Thank you for introducing me to it.  I got all 288 sprites modified.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...