Spawn projectile attacks while walking

danno

Moderator
Staff member
How do I spawn projectiles using the attack button without disturbing, stopping, stuttering walk animation?

single projectiles with each key press,

I tried using @cmd keyshoot but thats used during animation data and gives a machine gun attack if key is held
anything I change via keyscript disturbs the walk animation

In theory spawnbind with attack key press should work but I don't know how to do that.
 
It's really good script, I can't get the animations to sync up though, also I'm thinking it might be best to spawn bind the entire character into 2 parts, upper body and lower body.
 
https://www.youtube.com/watch?v=3yscJKHqr4w

nope.
this are my anims

Code:
anim	walk
	loop	1
	delay	16
	offset	28 106
	bbox	10 2 34 72
        sync    follow5
	frame	Data/CHARS/robo/w1.gif
	frame	Data/CHARS/robo/w2.gif
	frame	Data/CHARS/robo/w3.gif
and

Code:
anim  follow5 #walkaimdown
        sync    walk
	loop	1
	delay	16
	offset	28 106
	bbox	10 2 34 72
	frame	Data/CHARS/robo/wd1.gif
	frame	Data/CHARS/robo/wd2.gif
	frame	Data/CHARS/robo/wd3.gif

Can't find much documentation on sync or other games that use it
 
Use other methods, place "sync follow walk "in both anims , one of the methods i mentioned earlier will work cause im using it in mod

This i think was what worked for me in all 3 anims
anim walk
loop 1
offset 101 148
bbox 84 47 30 80
delay 4
sync run walk idle
@cmd projectile 1 "spark" -55 0 -25
frame data/chars/rangel/idle1.gif
frame data/chars/rangel/idle2.gif
frame data/chars/rangel/idle3.gif
frame data/chars/rangel/idle4.gif
frame data/chars/rangel/idle5.gif
frame data/chars/rangel/idle6.gif
frame data/chars/rangel/idle7.gif
@cmd projectile 1 "spark" -65 0 -20
frame data/chars/rangel/idle8.gif
frame data/chars/rangel/idle9.gif
delay 3
frame data/chars/rangel/idle10.gif
frame data/chars/rangel/idle11.gif
frame data/chars/rangel/idle12.gif
frame data/chars/rangel/idle13.gif
frame data/chars/rangel/idle14.gif
frame data/chars/rangel/idle15.gif
frame data/chars/rangel/idle16.gif
 
Back
Top Bottom