Rusted Warfare - RTS

Rusted Warfare - RTS

Not enough ratings
Warcraft II Footman Melee units and sprites tutorial
   
Award
Favorite
Favorited
Unfavorite
Units: Units
Tags: melee
File Size
Posted
76.315 KB
15 Mar, 2018 @ 6:22am
1 Change Note ( view )

Subscribe to download
Warcraft II Footman Melee units and sprites tutorial

In 1 collection by SUSHIMAKI
SUSHIMAKI's mods
85 items
Description
A simple tutorial using the footman from warcraft II as an example. The tutorial is meant for people that have already basic knowledge of how to mod. If you don't, there is a basic guide in the steam guides of the game.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1081489093

This mod is meant as an example of how to do melee units that walks and attacks with sprites.
I did not draw this unit, i only edited some sprites from the original sprites from Blizzard.


"The unit is fully implemented and you can build it from the land factory or fool arround in sandbox."


As you can observe, only 4 sprites are required for small units to get a nice impression of movement, of course more are needed for slow moving larger units. A basic sword attack requires as few as 2 sprites, one for charging the blow and one for the moment of impact. More sprites are not necessary for attacks especially because the hit sound effect happens when the animation starts so it limits how long the animation last, so long hit animation like in age of empires are not very good in this case and it would also take forever to draw without using 3D softwares.

-------------------------------------------------------------------------------------------------------------------------------------------------------------

In the top screenshots are actually the mod's assets.

Here is the content of the propertie file of the footman, i made it as simple as possible to provide a good base for people to start from:



[core]
name: Footman
class: CustomUnitMetadata
price: 350
maxHp: 325
mass: 1000
techLevel: 1
buildSpeed: 0.005
radius: 8
displayRadius: 10
isBio: true
selfRegenRate:0.1

builtFrom_1_name: landfactory




[graphics]
total_frames: 4
imageScale: 0.5

image: footman.png
image_wreak: footman_dead.png
image_turret: NONE

image_shadow: NONE
shadowOffsetX:0
shadowOffsetY:0

animation_moving_start: 0
animation_moving_end: 1
animation_moving_speed: 8
#animation_moving_pingPong: true

animation_idle_start: 0
animation_idle_end: 0
animation_idle_speed: 120
animation_idle_scale_start:1
animation_idle_scale_end:1.03
animation_idle_pingPong: true

animation_attack_start: 2
animation_attack_end: 3
animation_attack_speed: 6

lock_body_rotation_with_main_turret: true




[attack]
isMelee: true
canAttack: true
canAttackFlyingUnits: false
canAttackLandUnits: true
canAttackUnderwaterUnits: false
isFixedFiring: true
turretSize: 20
turretTurnSpeed: 3
maxAttackRange: 10
shootDelay: 30




[turret_1]
x: 0
y: 0
shoot_sound:bug_attack
shoot_sound_vol:0.4




[projectile_1]
directDamage: 20
life: 50
instant: true




[movement]
movementType: LAND
moveSpeed: 1.0
moveAccelerationSpeed: 0.07
moveDecelerationSpeed: 0.12
maxTurnSpeed: 16
turnAcceleration: 8
reverseSpeedPercentage:0
4 Comments
Furry Slurry 16 Jan, 2021 @ 2:58pm 
Question can i combine it with something that makes it have 5 directions? im making a lego battles mod that has units have 5 angles depending on which they going.
Ruin Sentinel 4 Jul, 2018 @ 12:17am 
GOOD tutorial.Thanks!
SUSHIMAKI  [author] 2 Apr, 2018 @ 8:52am 
Not that i know of. Its more for teaching how to make a melee unit.
EvilNecroid 2 Apr, 2018 @ 8:16am 
so has any1 followed this and made a full war2 mod?