Hi there,
Just looking for a suggestion to a problem i am having.
I am creating a small demo and have a model walking using the following code
This works fine, however when i want to have the player running by using "UP Cursor key"+"Shift" then the running animation simply freezes
Here is the code i have for my hero_control_movement() function
Does this look right to you? Can someone please give any pointers.
Much appreciated :)
Kind Regards
Just looking for a suggestion to a problem i am having.
I am creating a small demo and have a model walking using the following code
If KeyDown(200) Then If player_walking=0 Animate player_hero,1,.3,1 player_walking=1 player_running=0 EndIf MoveEntity player_hero, 0, 0,1 Else If player_walking=1 Animate player_hero,0,.3,15 player_walking=0 player_running=0 Else If Animating(player_hero)=0 Then Animate player_hero,0,.3,16 EndIf EndIf
This works fine, however when i want to have the player running by using "UP Cursor key"+"Shift" then the running animation simply freezes
Here is the code i have for my hero_control_movement() function
If KeyDown(200) Then If player_walking=0 Animate player_hero,1,.3,1 player_walking=1 player_running=0 EndIf MoveEntity player_hero, 0, 0,1 Else If player_walking=1 Animate player_hero,0,.3,15 player_walking=0 player_running=0 Else If Animating(player_hero)=0 Then Animate player_hero,0,.3,16 EndIf EndIf If (KeyDown(200)) And (KeyDown(54)) Then If player_running=0 Animate player_hero,1,.1,2 player_running=1 player_walking=0 EndIf MoveEntity player_hero, 0, 0,2 Else If player_running=1 Animate player_hero,1,.3,15 player_running=0 player_walking=0 Else If Animating(player_hero)=0 Then Animate player_hero,1,.3,16 EndIf EndIf
Does this look right to you? Can someone please give any pointers.
Much appreciated :)
Kind Regards