b.o.k. |
Hi there, I have a problem with diagonal doors: When the door is closed, I cant stop the player from walking through it. I used this for the door: load.view(34); set.view(o2,34); position(o2,19,127); set.loop(o2,0); set.cel(o2,3); observe.objs(o2); draw(o2); I tried observe.objs also for the ego, but without any effect. What is missing? b.o.k. |
david |
have you tried stop.motion(ego); ? if (said("open","door")) { if (posn(ego,?,?,?,?)) { stop.motion(ego); program.control(); end.of.loop(blahblah); } else { print("get closer dumbass."); } } i hope this helps you |
brian corr |
the problem youre having is that the block created by an object is on its bottom row of pixels. so what you need to do is put a blue control line where the door goes - make the rest black. then... if(door_open){ ignore.blocks(o0); } else{ observe.blocks(o0); } the add appropriate code for opening and closing the door - make sure you have the flag door_open in there brian |
bok | Hey, thanks a lot! ;D |