remoteCC - Pick up coins remotely
Posted: Sun Oct 25, 2020 7:10 pm
This is a script which allows you to collect coins remotely. Normally, coins can only be collected when a player touches them or they are bumped by a block from underneath. I've seen some people create some workarounds for this, so here's a proper script to do it for you! I've mostly created this for a work of my own.
Note: The script is capable of picking up all types of coins, including yoshi coins, starcoins, and dash/pop up coins with replicated effects. Other bonus items such as Cherries or Berries are not included.
Showcase:
How to use:
Code example:
This code makes koopa shells able to collect any type of coin.
Explanation
Download:
https://github.com/Novarender/remoteCC/archive/main.zip
Includes the script and a level utilizing the script, which features a new block: the Gold Ring Block.
If any images are broken, feel free to notify me so I can fix it. I hope this script helped and if it didn't, let me know what I can do! By the way, remoteCC stands for remote coin collection :]
Note: The script is capable of picking up all types of coins, including yoshi coins, starcoins, and dash/pop up coins with replicated effects. Other bonus items such as Cherries or Berries are not included.
Showcase:
Spoiler: show
How to use:
Spoiler: show
Code example:
This code makes koopa shells able to collect any type of coin.
Code: Select all
local remoteCC = require("remoteCC")
function onTick()
for _,v in ipairs(Colliders.getColliding{a=NPC.SHELL, atype = Colliders.NPC, btype = Colliders.NPC}) do
if v[1]:mem(0x136,FIELD_BOOL) then --Is in projectile mode
remoteCC.collect(v[2], v[1])
end
end
end
Spoiler: show
Download:
https://github.com/Novarender/remoteCC/archive/main.zip
Includes the script and a level utilizing the script, which features a new block: the Gold Ring Block.
If any images are broken, feel free to notify me so I can fix it. I hope this script helped and if it didn't, let me know what I can do! By the way, remoteCC stands for remote coin collection :]