Platform question

I've got a level with walls with breakable doorways in them.  Rather than set walls in the level itself, I was trying to take the "Wall" entity I made and make it an impassable barrier.
Is putting a platform in it the best way?  I've tried it but getting some weird errors.  If I try to change the lower left number to anything less than -70, the platform won't appear. 
If I walk toward it from the left or right it blocks my progress (which is good) but if I walk up from under it, it doesn't block my progress like a wall would.  Here's the entity text:

name Wall2
health 20
type         obstacle
facing 1
nolife   
              1
anim idle
platform  180 254 -80 -70 65 35 1000 1000
loop 1
delay 0
bbox 92 35 93 99 500
offset 112 495
frame data/bgs/Level1/Wall2.gif
 
Did you put like this?

name      Wall2
health      20
type              obstacle
facing      1
nolife 
              1

I believe you put 1 under nolife which you made a mistake I think. I think you know it would be like this:


Speaking of platforms, I think the platform offset should be the same as the regular offset or reverse. It might be this:

anim  idle
platform  180 254 -80 -70 65 35 1000 1000
  loop  1
  delay  0
  bbox  92 35 93 99 500
  offset  180 254
  frame  data/bgs/Level1/Wall2.gif

Or this..

anim  idle
platform  112 495 -80 -70 65 35 1000 1000
  loop  1
  delay  0
  bbox  92 35 93 99 500
  offset  112 495
  frame  data/bgs/Level1/Wall2.gif

You can try and see if it works.
 
Thanks maxman!

I ended up using regular walls for the level (see the new video I just posted in Dungeons & Dragons WIP thread).
I was going to have each wall sprite have its own built in obstacles just to make placing them easier, but using the wall command seemed like the best solution in the end.
 
Back
Top Bottom