"at" in x and z coordinates

jonsilva

New member
hello
i have a level set with direction (leftright)
the level also moves up and down its like a labrinth

iam having trouble spwaning enemies in good positions
spawn  brock
coords  650 645 71
at      700

the command "at" only works in x coordinates
is there a way of make it work also in z coordinate
like
at (x)700 (z) 550
 
There's no such command.
Also level can't change direction in mid way.

Maybe bloodbane' contra mod has some tricks like that, but I haven't check it yet.
 
i couldnt find this type of script in contra

ive just checked the level again and the level doesnt scroll back
if i spawn a group at 1700 then another at 700

i was think of adding an
@cmd attack1 0 280 80 "ANI_FOLLOW10"
to the enemies spawn animation so they would attack the player only when hes close to them.

the problem is i already have about 2/3 txt files for each enemy
so that their spawn and jump AI behaves diferent
i dont know if this entity txt files with know in models.txt uses a lot of resources
 
You can use a spawn script in your spawn entry to change animation, for example:

spawn enemy1
@script void main() {
performattack(getlocalvar("self"), openborconstant("ANI_FOLLOW2"));
} @end_script
coords 1000 200
at 500


Then you can do something in follow2.
 
this looks good
it seems i just need to change the spawn anim
to follow2 in enemy txt
this is was what i was using
anim spawn
loop 1
delay 5
offset 100 189
bbox 79 97 50 91
frame data/chars/1streetguy12/rise7.gif
@cmd attack1 -170 170 50 "ANI_FOLLOW10"
frame data/chars/1streetguy12/rise7.gif


anim follow10
loop 0
delay 15
offset 100 189
bbox 79 97 50 91
frame data/chars/1streetguy12/rise8.gif
frame data/chars/1streetguy12/idle01.gif
@cmd beidle
frame data/chars/1streetguy12/idle01.gif
 
Back
Top Bottom