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

A little question


newbie123
 Share

Recommended Posts

First i'm brazilian so, sorry for my bad english

I will now start creating a system where when the player make an animation magic sprite the same move.

To change the animation when the player attacks just search for

```

If Player(Index).AttackTimer + (attackspeed / 2) > GetTickCount Then
        If Player(Index).Attacking = 1 Then
            Anim = 3
        End If
```
And change the "3" for the desired animation value

What I wonder is whether to change the animation of the character to cast a spell is also simple, or if there is a "variable" ja movement created, for example there:

Player(index).moving = 0 'walk

player(index).moving = 1 'run

Wanted to know if the OS has already configured to use

Player(index).castspell = true

So to set with ease the animation of the player to use magic.

Or is the only way would be to create a variable of zero castspell …

I hope for your help
Link to comment
Share on other sites

> First i'm brazilian so, sorry for my bad english
>
>  
>
> I will now start creating a system where when the player make an animation magic sprite the same move.
>
>  
>
> To change the animation when the player attacks just search for
>
> ```
>
> If Player(Index).AttackTimer + (attackspeed / 2) > GetTickCount Then
>         If Player(Index).Attacking = 1 Then
>             Anim = 3
>         End If
> ```
> And change the "3" for the desired animation value
>
>  
>
> What I wonder is whether to change the animation of the character to cast a spell is also simple, or if there is a "variable" ja movement created, for example there:
>
>  
>
> Player(index).moving = 0 'walk
>
> player(index).moving = 1 'run
>
>  
>
> Wanted to know if the OS has already configured to use
>
>  
>
> Player(index).castspell = true
>
>  
>
> So to set with ease the animation of the player to use magic.
>
> Or is the only way would be to create a variable of zero castspell …
>
> I hope for your help

I don't understand any of this. What exactly are you looking for?
Link to comment
Share on other sites

i think he wants a code to have idle animation upon casting magic. Meh this isn't something i would do for someone for free, i'm sure many of us agree to this.

what i can offer is advice though, just create a new function as boolean to render the animation and time it on the game loop.
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...