Enemy "Anim Upper" problem

Tilaval

New member
I tried to solve and it didn't work.. the enemy movement looks very glitchy at "1:40"
https://vid.me/Ls5O

Code:
name	 Bishamon
health	100
speed	15
type	enemy
cantgrab	1
shadow	2
falldie 1
nodieblink 1
nodrop	1
icon	data/chars/gsol/icon.gif
diesound data/sounds/cure.wav


anim upper
	loop	0
	delay	4
	hitFX	data\chars\gsol\hitfxbis.wav
	offset	59	168
	bbox	0	0	0	0
	sound	data/chars/gsol/atfxbis.wav
	attack	80	55	76	50	8	1	0	0	35
	move	8
	frame	data/chars/gsol/at41.gif
	frame	data/chars/gsol/at41.gif
	frame	data/chars/gsol/at41.gif
	frame	data/chars/gsol/at41.gif
	frame	data/chars/gsol/at42.gif
	frame	data/chars/gsol/at42.gif
	frame	data/chars/gsol/at42.gif
	frame	data/chars/gsol/at42.gif
	attack	44	5	61	59	8	1	0	0	35
	delay	5
	frame	data/chars/gsol/at43.gif
	frame	data/chars/gsol/at43.gif
	frame	data/chars/gsol/at43.gif
	frame	data/chars/gsol/at43.gif
	frame	data/chars/gsol/at44.gif
	frame	data/chars/gsol/at44.gif
	frame	data/chars/gsol/at44.gif
	frame	data/chars/gsol/at44.gif
 
This is the problem:

...
attack 80 55 76 50 8 1 0 0 35
move 8
frame data/chars/gsol/at41.gif
frame data/chars/gsol/at41.gif
frame data/chars/gsol/at41.gif
frame data/chars/gsol/at41.gif
frame data/chars/gsol/at42.gif
frame data/chars/gsol/at42.gif
frame data/chars/gsol/at42.gif
frame data/chars/gsol/at42.gif
...

When you declare move 8 in a frame, the entity will move 8 pixels forward per frame. Since you don't set another move command in next frames, this entity will keep moving until end of animation
To stop this move-ment, set move 0
 
Bloodbane said:
This is the problem:

...
attack 80 55 76 50 8 1 0 0 35
move 8
frame data/chars/gsol/at41.gif
frame data/chars/gsol/at41.gif
frame data/chars/gsol/at41.gif
frame data/chars/gsol/at41.gif
frame data/chars/gsol/at42.gif
frame data/chars/gsol/at42.gif
frame data/chars/gsol/at42.gif
frame data/chars/gsol/at42.gif
...

When you declare move 8 in a frame, the entity will move 8 pixels forward per frame. Since you don't set another move command in next frames, this entity will keep moving until end of animation
To stop this move-ment, set move 0

Still the same strange slow motion upper attack... maybe OpenBoR v3.0 Build 2397 is the problem...
 
Back
Top Bottom