Hurt Baddy/NPC/Player with a NPC Block

just a quick little request as i cant even figure out where to start on this(apart from the hurt player), how could a make an NPC Block that when a Baddy, NPC or Player touches it they get hurt.
also an other idea i just had is an NPC that makes you slide while you walk on it (like when a bomy is on water but slower), just came up with it and not tryed to think of any way to do this one yet just putting it out there. :smiley:

If you want the slide thing then look up one of the ice skating rink scripts :stuck_out_tongue:

oh good idea, will try to find one :smiley: ty

grr i dont know how to make the damm char cerve as you try to make a turning i just got him so he is slideing in stright lines…

any help?

if (playerenters) {
timereverywhere;
timeout=.05;
xmove=0;
ymove=0;
}
if(timeout){
timeout=.05;
if(playery<64&&playerx<64&&playery>0&&playerx>0){
if(playersprite=>0&&playersprite=<39){
if(abs(xmove)<1.5){
if(playerdir=3) xmove+=.2;
if(playerdir=1) xmove-=.2;
}
if(abs(ymove)<1.5){
if(playerdir=2) ymove+=.2;
if(playerdir=0) ymove-=.2;
}

  if(xmove<>0&&!onwall(playerx-(xmove),playery-(ymove))&&!onwall(playerx+2.5+(xmove),playery+3.5+(ymove))) {
    playerx+=xmove;
  }
  if(xmove>0) xmove-=.1;
  if(xmove<0) xmove+=.1;

  if(ymove<>0&&!onwall(playerx-(xmove),playery-(ymove))&&!onwall(playerx+2.5+(xmove),playery+3.5+(ymove))) {
    playery+=ymove;
  }
  if(ymove>0) ymove-=.1;
  if(ymove<0) ymove+=.1;


  if(abs(xmove)<1)xmove=0;
  if(abs(ymove)<1)ymove=0;
}

}
else{ymove=0;xmove=0}
}