small suggestion behavior npc(2/3 done)
Posted: 13 Jul 2019, 8:41
1) Correct frame of the thwomp npc-180, even program it, but this is so that it is by default:
if char(1).y+char(1).pheight<.y+5 and .y=.pry then
.curframe=1
elseif .ysp>0 then
.curframe=3
elseif .ysp=0 and .y=.pry then
if -128<=char(1).x+12-.x-24 and char(1).x+12-.x-24<=128 Then
.curframe=2
elseif -128<=char(2).x+12-.x-24 and char(2).x+12-.x-24<=128 Then
.curframe=2
else
.curframe=1
end if
elseif .ysp<0 then
.curframe=1
end if
2) The p-switch (npc-32) add the behavior in which the player has the opportunity to jump when he is on top (if he jumps on time) as a mario maker.
3) npc-137(bomb) Add the behavior that when the player does spin jump on this npc slide as mario maker.
if char(1).y+char(1).pheight<.y+5 and .y=.pry then
.curframe=1
elseif .ysp>0 then
.curframe=3
elseif .ysp=0 and .y=.pry then
if -128<=char(1).x+12-.x-24 and char(1).x+12-.x-24<=128 Then
.curframe=2
elseif -128<=char(2).x+12-.x-24 and char(2).x+12-.x-24<=128 Then
.curframe=2
else
.curframe=1
end if
elseif .ysp<0 then
.curframe=1
end if
2) The p-switch (npc-32) add the behavior in which the player has the opportunity to jump when he is on top (if he jumps on time) as a mario maker.
3) npc-137(bomb) Add the behavior that when the player does spin jump on this npc slide as mario maker.