Code: Select all
With npc(sysval(Param1))
.forecolor = rgba(53, 53, 126, 1)
end with
But anything in the rgba just seems to make the NPC invisible, same with blocks. I am doing something wrong?
So i found that you can change the forecolor of NPCs and blokcs via scripts, and i typed this to make a red koopa have a shade of blue
Code: Select all With npc(sysval(Param1))But anything in the rgba just seems to make the NPC invisible, same with blocks. I am doing something wrong?
Last edited by 1gnacio25 on 6 Aug 2021, 1:00, edited 1 time in total.
| ||
The last parameter of the rgba function:
255: completely filled. 0: completely invisible or no fill of the image. Programming NPCs in SMBX-38A is fun:
ROCKMAN GIF IN SMBX 38A ![]() | ||
Ok, so the NPC forecolor works just fine. I assumed that it would work the same for blocks, so i wrote this: Code: Select all With block(sysval(Param1))But it turns random blocks into that color and i only want all the specified blocks to change color | ||
Here just all blocks to sysval(BCount) code, enjoy! Code: Select all Dim shader as integer | ||
Now it works, thanks ![]() | ||
Who is online (over the past 5 minutes)Users browsing this forum: 1 guest | ||