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: Yoshi021, Lx Xzit, 5438A38A, Semi-moderatos, Moderators

Lx Xzit M
Topic author, Moderator
Lx Xzit M
Topic author, Moderator
Reputation: 326
Posts: 702
Joined: 9 Nov 2015

Post #1by Lx Xzit » 15 Sep 2019, 23:12

This property is meant to work with all kind of coins (including Dragon Coins and Star Coins). It would do nothing in non-coin npcs.

scollect stands for "self-collect".
If this value is set 1, the npc will "collect itself" like if the player collected it, but without intervention of it. This would be especially useful for making NPCs interact with coin-like npcs.

The problem with the current methods (and the reason why I'm suggesting this property) is that there is not a good way to simulate this effect. If I use ".alive=0", I have problems with displaying the correct effect (since it shows four effects after the npc died, it would require to store the position where it died, set a delay and show the effects in order, just for a single coin), for the Dragon Coins it would require to keep track of each one once collected, and for the Star Coin it would have to create it's behavior practically from scratch. Nkill doesn't help either, it deletes the NPC ignoring by completely it's "collected" behavior.

That's why I thought it would be appropriate having a property that let's us replicate the collected behavior of a coin easily, like if the player grabbed it.
Join our 38A Discord server!


Return to “Ideas & Suggestions”

Who is online (over the past 5 minutes)

Users browsing this forum: 2 guests