Rusted Warfare - RTS

Rusted Warfare - RTS

No hay suficientes valoraciones
Warcraft II Footman Melee units and sprites tutorial
   
Premiar
Favoritos
Favorito
Quitar
Units: Units
Etiquetas: melee
Tamaño
Publicado el
76.315 KB
15 MAR 2018 a las 6:22
1 nota sobre cambios ( ver )

Suscríbete para descargar
Warcraft II Footman Melee units and sprites tutorial

En 1 colección creada por SUSHIMAKI
SUSHIMAKI's mods
84 artículos
Descripción
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.

http://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 comentarios
Furry Slurry 16 ENE 2021 a las 14:58 
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 a las 0:17 
GOOD tutorial.Thanks!
SUSHIMAKI  [autor] 2 ABR 2018 a las 8:52 
Not that i know of. Its more for teaching how to make a melee unit.
EvilNecroid 2 ABR 2018 a las 8:16 
so has any1 followed this and made a full war2 mod?