npc().isenemy

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
Moderator
Avatar
Lx Xzit M
Topic author, Moderator
Moderator
Reputation: 272
Posts: 619
Joined: 9 Nov 2015
Website

Post #1by Lx Xzit » 24 Sep 2019, 8:09

I'd like to suggest the property ".isenemy" which group the NPCs you normally would like to hurt/kill in a custom player moveset or custom npc. This value should be set to 1 by default in all npcs except:
-Bosses
-Projectiles
-NPCs that doesn't damage the player (items, block npcs, platforms, people/sign, vines, veggies and neutral npcs)
-Saw and SMB1 fireball

This would only leave us with the landing enemies. Then, identifying these npcs would be much easier and efficient than storing their ids into an array.
VISIT MY YOUTUBE CHANNEL! LX XZIT
Join our 38A Discord server!

Image

Return to “Ideas & Suggestions”

Who is online (over the past 5 minutes)

Users browsing this forum: 3 guests