Uploaded February 2026 | Updated November 2026, 7 hours ago
Here is something that took me so long to figure out. So I made line-guided platforms that align with the line guides. Usually NPC-104 would automatically connect to the line guides, but resizing the platform will make them not align correctly with the line guides. So using NPC-105, I was able to create a script to fix that using expanded GFX for different sizes of the platforms and changing the value of .haswing from 0 to 8 when the player touches the platform from above. The way they respawn is a little bit off but I was able to manage to make it work with a minor problem but I'm not worried about it. The script you need is shown below for you to copy and paste to your level, and I will make a better demonstration about how they work and how to use them once I finish script pack 10.
'Set this script to .touchevent for NPC-105
with npc(sysval(param1))
'If you want this platform to follow the code below, set name to either 0 or 1
if .name = 1 'If you want the platform to move left when the player steps on it
.facing = 1 'Platform moves left when in contact with line guides
if sysval(param3) = 0
.haswing = 0
elseif sysval(param3) = 1
.haswing = 8
.pry = .y - 32 '.prx acts strange sometimes when the platform respawns below the line guides. Leave this code the way it is.
end if
elseif .name = 0 'If you want the platform to move right when the player steps on it
.facing = 0 'Platform moves right when in contact with line guides
if sysval(param3) = 0
.haswing = 0
elseif sysval(param3) = 1
.haswing = 8
.pry = .y - 32 '.prx acts strange sometimes when the platform respawns below the line guides. Leave this code the way it is.
end if
end if
end with
----------Other places you can find me----------
SMBX 38A Discord Server: discord.com/invite/CWeeZmEbgu
- Tik Tok: @spiritualistic
Link: tiktok.com/@spiritualistic
- Instagram: @omega02official
Link: instagram.com/omega02official
- PGE Forums: Omega02
Link: https://wohlsoft.ru/forum/memberlist.php?mode=viewprofile&u=1377
Here is something that took me so long to figure out. So I made line-guided platforms that align with the line guides. Usually NPC-104 would automatically connect to the line guides, but resizing the platform will make them not align correctly with the line guides. So using NPC-105, I was able to create a script to fix that using expanded GFX for different sizes of the platforms and changing the value of .haswing from 0 to 8 when the player touches the platform from above. The way they respawn is a little bit off but I was able to manage to make it work with a minor problem but I'm not worried about it. The script you need is shown below for you to copy and paste to your level, and I will make a better demonstration about how they work and how to use them once I finish script pack 10.
'Set this script to .touchevent for NPC-105
with npc(sysval(param1))
'If you want this platform to follow the code below, set name to either 0 or 1
if .name = 1 'If you want the platform to move left when the player steps on it
.facing = 1 'Platform moves left when in contact with line guides
if sysval(param3) = 0
.haswing = 0
elseif sysval(param3) = 1
.haswing = 8
.pry = .y - 32 '.prx acts strange sometimes when the platform respawns below the line guides. Leave this code the way it is.
end if
elseif .name = 0 'If you want the platform to move right when the player steps on it
.facing = 0 'Platform moves right when in contact with line guides
if sysval(param3) = 0
.haswing = 0
elseif sysval(param3) = 1
.haswing = 8
.pry = .y - 32 '.prx acts strange sometimes when the platform respawns below the line guides. Leave this code the way it is.
end if
end if
end with
----------Other places you can find me----------
SMBX 38A Discord Server: discord.com/invite/CWeeZmEbgu
- Tik Tok: @spiritualistic
Link: tiktok.com/@spiritualistic
- Instagram: @omega02official
Link: instagram.com/omega02official
- PGE Forums: Omega02
Link: https://wohlsoft.ru/forum/memberlist.php?mode=viewprofile&u=1377










