Forum

> > CS2D > Scripts > skin doesn't move when player attacks
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch skin doesn't move when player attacks

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt skin doesn't move when player attacks

khaled1968
User Off Offline

Zitieren
Hello!

So... I was making zombie script and I added some skins, but I noticed that when zombies attack, their skin remain frozen and it movement doesn't match the movement of the zombie's hands...

Any solutions...?

note: i don't mean that skins remain frozen in its x and y position and doesn't follow the player! i mean they just don't move when that zombie attacks, and I want it to move so that it looks realistic.

alt Re: skin doesn't move when player attacks

Mami Tomoe
User Off Offline

Zitieren
cs2d lua cmd image
CS2D.com hat geschrieben
1
2
3
4
5
6
7
x<=0 - do not rotate image with player

x=1 - rotate image with player

x=2 - rotate and wiggle image with player

x=3 - rotate and wiggle image with player and move correctly with recoil


Use the third option.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht