Alt walk and idle animation

vision

Member
I was going threw the manual and came across alt walk and idle animation for players. So what I want to know is
      "how to set the range for when the alt animation is displayed based on how close the enemy is to the player". I think it's defaulted at 100 pix. but that's way too close.
and sorry for not posting any progress pix or a demo I'm working on 6 mods that are all combined into one that must be separated upon finishing the process, and the current size is over 900 megs. It looks a hot mess if you don't know what's really going on.
this is the select screen so far
select_zps33d89b90.png

Yea.... Confusing.
 
what if theres 5 enemies and one is close and other one is far and they switch walking around constantly, that wouldnt look nice if you walk anim would change every half second.
 
The default range is net 100 pixels; I'm the one who coded this feature, though I don't recall exactly what the default is. I want to think it's 1000.

As for use, it's just a matter of style, and if done properly it looks pretty sweet. My intention was to allow a different walk and idle when enemies are around or not (i.e. on screen). It's a cool feature that very few games have; the ones I know of are Golden Axe 2 (arcade) and Violent Storm. It's also useful for making Fatal Fury style idle/walk where the characters turn to face each other based on Z-Axis proximity.

Combine the two and you get a much more realistic looking behavior from your fighters. I've got some demo footage laying around where I was testing with my Fatal Fury Chronicles Module if I can find it.

DC

PS: That SS looks pretty sweet!

 
There's a hidden script feature which allows you to set idlemode manually.
For example, changeentityproperty(ent, "idlemode", 2), will use idle2 instead until you modify it.  Though you still need ranges.
There's also a walkmode which affects walk (also up, down and backwalk).

 
Well I already used the alt walk/idle feature. The manual says rang is 0-100, the problem is the animation don't change till the enemy is right on top of you. it should change soon an the enemy is on the screen, and after the last enemy is gone it should change back to normal. DC,  maybe you forgot a 0  ;D. if the resolution is 480/272, then 480 would be a good range. an exclamation mark flashes over the players head for a brief second when the enemy is on screen  (like Metal Gear Solid) I'm trying to use three walk/idle stance.
1=normal; all clear
2=prepared ; enemy on screen
3=ready; hand on the trigger
an adjustable range would fix all that. if its available already , I'll find it.
thanks.
 
bWWd said:
what if theres 5 enemies and one is close and other one is far and they switch walking around constantly, that wouldnt look nice if you walk anim would change every half second.

This is exactly what's going on at this point. the alt animation is only available when an enemy is right in your face, but cause your usually trying to hit an enemy this close you never even notice the change unless you knock the enemy down and stand right on top of it. So i made some items into enemy types, and then you see the change as you walk closely past the item. So in actuality the player looks like it's creeping past the item, or fallen enemy. 
 
By "adjustable" I'm not sure if you mean during game play or not, but you can certainly adjust the static range setting of each walk/idle animation. For a 480*272 screen I used a range of -300 300 for the fighting stance; the character would be in a casual state while enemies were hanging around the screen edges, but then take a ready stance the second one of them came any closer.

The full setup was:

anim idle

#Relaxed idle
        #(Doesn't need a range setting; it is the fall back for when all others fail their range checks)
        ...

anim idle2

#Strafe Idle (opponent "above" on Z-axis)

range  -250 250
rangez -250 -15
        ...

anim idle3

#Strafe Idle (opponent "below" on Z-axis)

range  -250 250
rangez  15 250
        ...

anim idle4

#Normal idle.

range    -300 300
rangez  -250 250     
        ...

DC
 
Back
Top Bottom