Cliffturn code doesn't work when setting NoNPCCollision code to NPCs(Fixed Patch 27)

Description: Report bugs of SMBX-38A here.
Forum rules: https://wohlsoft.ru/forum/viewtopic.php?f=64&t=1069
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

fnafan8888888888 M
Topic author, Count
Count
fnafan8888888888 M
Topic author, Count
Count
Age: 20
Reputation: 34
Posts: 278
Joined: 30 Jun 2019

Post #1by fnafan8888888888 » 15 Dec 2019, 20:26

In the new patch (Patch 26) "Cliffturn" code doesn't work when setting NoNPCCollision code to NPCs.
Last edited by fnafan8888888888 on 15 Jan 2020, 22:35, edited 2 times in total.

NESTED ERNEST M
Count
Count
Avatar
NESTED ERNEST M
Count
Count
Reputation: 71
Posts: 268
Joined: 23 Sep 2017
Location: Perú, Lima
Youtube channel URL

Post #2by NESTED ERNEST » 17 Dec 2019, 19:35

If the npc has a script, it must use "enable for default and custom AI" and not "enable for default AI"
Programming NPCs in SMBX-38A is fun:
That is me
Image
Image
Image
Image

Special image
  • yt-image-banner: https://yt3.ggpht.com/M_O1AzQEOJogSq5OJESIaA5kFLdbwdDNMihDOJkJgPiH7cOx-LWK41TU9GWzExmkmpn3EWYbJg=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj
  • image-to-up: https://3.bp.blogspot.com/-Y-LrpIS2rqw/UCBTtk7k-pI/AAAAAAAABBs/qZuI0sCStkc/s1600/jean-baptiste+beaudelle+girafe++escargot.jpg
  • image-to-left: https://us.123rf.com/450wm/trassnick/trassnick2007/trassnick200700002/152919781-el-marl%C3%ADn-negro-grande-salta-del-mar-pesca-extrema-del-pez-espada-negro-en-alta-mar-vacaciones-en-lo.jpg
  • image-last-w: 1


ROCKMAN GIF IN SMBX 38A

Image

fnafan8888888888 M
Topic author, Count
Count
fnafan8888888888 M
Topic author, Count
Count
Age: 20
Reputation: 34
Posts: 278
Joined: 30 Jun 2019

Post #3by fnafan8888888888 » 17 Dec 2019, 19:56

NESTED ERNEST wrote:If the npc has a script, it must use "enable for default and custom AI" and not "enable for default AI"
I know, the NPCs I tested doesn't have scripts and I tried both options and still doesn't work.

NESTED ERNEST M
Count
Count
Avatar
NESTED ERNEST M
Count
Count
Reputation: 71
Posts: 268
Joined: 23 Sep 2017
Location: Perú, Lima
Youtube channel URL

Post #4by NESTED ERNEST » 17 Dec 2019, 20:21

fnafan8888888888 wrote:
NESTED ERNEST wrote:If the npc has a script, it must use "enable for default and custom AI" and not "enable for default AI"
I know, the NPCs I tested doesn't have scripts and I tried both options and still doesn't work.

I just tried it, and if it works, you must ensure that your script does not have (your npc) a fixed speed or an always constant look (always .facing = 1) and that you are stepping on some block (noblockcollision = 0) (you can also help gravity if it's not touching a block), for example: this works in npc-1

Spoiler

Code: Select all

with npc(sysval(param1))
.ysp=.ysp+0.26
if .ysp>8 then
   .ysp=8
end if

.ivala=.ivala+1   
if .ivala=1 then
   .xsp=1.1*(1-2*.facing)
end if
   
end with

But this will obviously fail.

Spoiler

Code: Select all

with npc(sysval(param1))
.ysp=.ysp+0.26
if .ysp>8 then
   .ysp=8
end if

.xsp=1.1
   
end with
Programming NPCs in SMBX-38A is fun:
That is me
Image
Image
Image
Image

Special image
  • yt-image-banner: https://yt3.ggpht.com/M_O1AzQEOJogSq5OJESIaA5kFLdbwdDNMihDOJkJgPiH7cOx-LWK41TU9GWzExmkmpn3EWYbJg=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj
  • image-to-up: https://3.bp.blogspot.com/-Y-LrpIS2rqw/UCBTtk7k-pI/AAAAAAAABBs/qZuI0sCStkc/s1600/jean-baptiste+beaudelle+girafe++escargot.jpg
  • image-to-left: https://us.123rf.com/450wm/trassnick/trassnick2007/trassnick200700002/152919781-el-marl%C3%ADn-negro-grande-salta-del-mar-pesca-extrema-del-pez-espada-negro-en-alta-mar-vacaciones-en-lo.jpg
  • image-last-w: 1


ROCKMAN GIF IN SMBX 38A

Image

fnafan8888888888 M
Topic author, Count
Count
fnafan8888888888 M
Topic author, Count
Count
Age: 20
Reputation: 34
Posts: 278
Joined: 30 Jun 2019

Post #5by fnafan8888888888 » 17 Dec 2019, 22:02

NESTED ERNEST wrote:
fnafan8888888888 wrote:
NESTED ERNEST wrote:If the npc has a script, it must use "enable for default and custom AI" and not "enable for default AI"
I know, the NPCs I tested doesn't have scripts and I tried both options and still doesn't work.

I just tried it, and if it works, you must ensure that your script does not have (your npc) a fixed speed or an always constant look (always .facing = 1) and that you are stepping on some block (noblockcollision = 0) (you can also help gravity if it's not touching a block), for example: this works in npc-1

Spoiler

Code: Select all

with npc(sysval(param1))
.ysp=.ysp+0.26
if .ysp>8 then
 .ysp=8
end if

.ivala=.ivala+1   
if .ivala=1 then
 .xsp=1.1*(1-2*.facing)
end if
 
end with

But this will obviously fail.

Spoiler

Code: Select all

with npc(sysval(param1))
.ysp=.ysp+0.26
if .ysp>8 then
 .ysp=8
end if

.xsp=1.1
 
end with
NESTED ERNEST wrote:
fnafan8888888888 wrote:
NESTED ERNEST wrote:If the npc has a script, it must use "enable for default and custom AI" and not "enable for default AI"
I know, the NPCs I tested doesn't have scripts and I tried both options and still doesn't work.

I just tried it, and if it works, you must ensure that your script does not have (your npc) a fixed speed or an always constant look (always .facing = 1) and that you are stepping on some block (noblockcollision = 0) (you can also help gravity if it's not touching a block), for example: this works in npc-1

Spoiler

Code: Select all

with npc(sysval(param1))
.ysp=.ysp+0.26
if .ysp>8 then
 .ysp=8
end if

.ivala=.ivala+1   
if .ivala=1 then
 .xsp=1.1*(1-2*.facing)
end if
 
end with

But this will obviously fail.

Spoiler

Code: Select all

with npc(sysval(param1))
.ysp=.ysp+0.26
if .ysp>8 then
 .ysp=8
end if

.xsp=1.1
 
end with
I just found out the problem, I was setting "NoNPCCollision" to NPC-1 and NPC-2 and Cliffturn doesn't work because of that, although it was working in Patch 25!


Return to “SMBX-38A Bug reports”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest