enemy spawn on top of platform !!!

jonsilva

New member
hello

ive made a stage that uses a platform ive used a platform and not a wall
so when the player falls of the platform is image stays behind the platform or in front depending on the falling point (moving up or down)

but i iam having trouble spawning enemies on top of the platform
when they spawn their AI behaves weird... moving in circles like
they had a wall in front of them... and they cant seem to follow the player...

also the enemy's image appears in front of the player like they had
a setlayer of +50

example:
plat.jpg



anyone know whats keeping the enemy from moving
on top of the platform like it was a wall stage

if i use wall the enemy behaves normal but the entity they are on top of gets its setlayer out of sync... and starts appearing in front of the entities and it gets impossible to get a (fall behind) from the upper side with
the player image behind the platform entity!!!
 
I'm afraid you have to use a wall instead.

The platform, unless you use setlayer, will make entities above it display in a fixed layer. It was designed to display small objects like barrels or boxes, or a 2D stage like contra which doesn't need to sort the entities.
 
thanks for the reply

ive just removed the platform and used wall
but the enemy keeps moving up when he lands on top of the wall

i dont know how to explain this...
ive already made another level before this one were the entities fight on top of a wall with a hole under it... and everything worked fine...

now ive made the same thing with this level but the enemies dont attack the player its like they keep moving up when they reach the middle of the wall...
i cant make any sense of it... 
 
ive just found out if i set the wall height to 100
the enemy moves freely and attacks the player....
iam using the 1st wall in carr01

music data/music/miliroad3.bor

background data/bgs/45lvl/back.gif 0 0 0 0 0 0 -1 1 1 0 0 0 0 0 2
panel data/bgs/45lvl/panel.gif
#layer data/bgs/44lvl/roadback2.gif -2000 0 0 0 -125 0 0 -1 1 1 0 0 0 0 0 1
#layer data/bgs/44lvl/roadback1.gif -1600 0 0 0 -90 0 0 -1 1 1 0 0 0 0 0 1.5
layer data/bgs/45lvl/linemiddle.gif -300 0 0 0 320 0 0 -1 1 1 0 0 0 0 0 3
fglayer      data/bgs/45lvl/linefrt.gif 1 0 0 0 310 0 0 -1 1 1 0 0 0 0 0 3.5
layer data/bgs/45lvl/speed.gif 1000 0 0 0 60 0 0 -1 1 1 1 0 0 0 0 4


direction      both
light  10  60
at      0
settime        0
notime          1
noslow          0
order a
spawn1  190 305 220
spawn2  145 20
spawn3  185 20


bgspeed 10 0

cameraoffset            0 -70
cameratype              1

#-----------------------------------------------------
wall 250 660 -140 -140 340 340 110 215
#---> this wall correspondes to the (spawn carr01)
#-----------------------------------------------------




wall 950 660 -160 -160 100 100 60 215
wall 1430 660 -160 -160 290 290 90 215
wall 2130 665 -180 -180 390 390 40 115
wall 2860 665 -170 -170 110 110 65 205
wall 3350 655 -190 -190 630 630 10 80
hole 780 770 -1600 -1600 4000 4000 400


#-----------------------

spawn  carr01
coords  450 660
at      0


spawn  carr02
coords  905 660
at      0

spawn  carr03
coords  1590 660
at      0

spawn  carr04
coords  2240 660
at      0

spawn  carr05
coords  2825 660
at      0

spawn  carrfrt
coords  3440 660
at      0

#------------------------

group 1 1
at 5
wait
at 5

spawn  dash
health  200
coords  350 630 350
at      5

spawn  schnell
health  250
coords  350 630 300
at      5

level.txt

z          200 900 800
file      data/levels/45lvl.txt
next


 
I don't know if this is the problem.

But try to use positive values instead to see if it is fixed. You can always change the first 2 number to adjust position anyway.

wall 950 660 -160 -160 100 100 60 215


To

wall 790 660 0 0 260 260 60 215
 
it dindnt worked...
the enemy behaves normal if i set the wall altitude to 115
but its a low altitute for the entity their on top of... also other carr0 entities are smaller and lower... when i reach carr04 i cant get an altitude... ive been changing the carr0 off sets and removed the platform so the player falls behind it...

but its much more dificult this way... than just give the carr0 its normal altitude depending on its sprite gif

ive also tried to set the enemy subtype to chase with the wall altitude of 215 and is AI started to behave normal following and attacking the player
 
no i iam using type none
ive also tried obstacle with
subject_to_hole 0
subject_to_platform 0
subject_to_wall 0

but the enemy was still moving to the upper corner


name carr01
type none
health 100
nolife          1
facing 1
nomove 1
makeinv 3
offscreenkill 10000
subject_to_hole 0
subject_to_platform 0
subject_to_wall 0

anim idle
loop 1
delay 5
offset 450 260
frame data/bgs/45lvl/carr01.gif
frame data/bgs/45lvl/carr02.gif

anim spawn
loop 0
delay 5
offset 450 260
frame data/bgs/45lvl/carr02.gif

name carr02
type none
facing 1
offscreenkill 10000







anim idle
loop 1
delay 5
offset 260 225
frame data/bgs/45lvl/carr03.gif
frame data/bgs/45lvl/carr04.gif
 
Back
Top Bottom