[Block] Collision Detection (Player and NPC)

Description: Have any suggestions or new ideas for SMBX-38A? This is a place for you. Good suggestions may appear in future versions of SMBX-38A.
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

Victor ManuelMR M
Topic author, Count
Count
Avatar
Victor ManuelMR M
Topic author, Count
Count
Age: 21
Reputation: 155
Posts: 241
Joined: 7 Feb 2018

Post #1by Victor ManuelMR » 14 Dec 2020, 9:42

Block(Index).Possible names:
cdplayer
cdnpc
collisionplayer
collisionnpc
typeplayer
typenpc
collisiontype
ctp (Collision Type Player)
ctn (Collision Type NPC)
typep
typen
collisionn
collisionp
cdset (_p - Player | _n - NPC)
cplayerset
cnpcset
Determines the type of collision detection:
[0] Block(Solid)
[3] Block(Hollow)
[31] Platform
[1] Platform (Up)
[23] Platform (Down)
[24] Platform (Left)
[25] Platform (Right)
[4] Slope (Upper Left)
[5] Slope (Upper Right)
[6] Slope (Bottom Left)
[7] Slope (Bottom Right)
[8] Slope Plank (LD-RU)
[9] Slope Plank (LU-RD)
[19] Slope Plant. (Upper Left)
[20] Slope Plant. (Upper Right)
[21] Slope Plant. (Bottom Left)
[22] Slope Plant. (Bottom Right)
Image
[1.4.5] - Dream Team at The Challenging Portals:
Image

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 » 14 Dec 2020, 18:38

https://wohlsoft.ru/pgewiki/Block_(TeaScript)

pcollision.-The player collision type of the block.
ncollision.-The NPC collision type of the block.
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

Victor ManuelMR M
Topic author, Count
Count
Avatar
Victor ManuelMR M
Topic author, Count
Count
Age: 21
Reputation: 155
Posts: 241
Joined: 7 Feb 2018

Post #3by Victor ManuelMR » 14 Dec 2020, 22:13

NESTED ERNEST wrote:https://wohlsoft.ru/pgewiki/Block_(TeaScript)

pcollision.-The player collision type of the block.
ncollision.-The NPC collision type of the block.

It is read-only. I can not modify the block.
If I wanted to create a block, which would change its type of collision, depending on the ExtX, I couldn't.
Image
[1.4.5] - Dream Team at The Challenging Portals:
Image


Return to “Ideas & Suggestions”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest