How to make an enemy not move? Like AT ALL?

Need help with any SMBX game-related issues? Ask your questions here.
Mal8rk
Tweeter
Tweeter
Posts: 154
Joined: Mon Oct 25, 2021 11:04 pm
Flair: I like socializing with people online
Pronouns: He/Him
Contact:

How to make an enemy not move? Like AT ALL?

Postby Mal8rk » Fri Jan 28, 2022 11:37 am

What I mean by this is, how can I make an enemy not move without it doing whatever things they usually do? Like how can make a Hammer Bro not move without it throwing its hammers

deice
Buster Beetle
Buster Beetle
Posts: 441
Joined: Fri Jul 23, 2021 7:35 am

Re: How to make an enemy not move? Like AT ALL?

Postby deice » Fri Jan 28, 2022 2:15 pm

most npc actions are controlled by their ai fields. for example, the smb1 hammer bro throws hammers depending on "ai3". other npcs might have states which you can easily just keep setting to idle.

Julia Pseudo
Ludwig
Ludwig
Posts: 5603
Joined: Wed Jan 08, 2014 12:04 am
Flair: gay gaymer girl
Pronouns: She/her

Re: How to make an enemy not move? Like AT ALL?

Postby Julia Pseudo » Sun Jan 30, 2022 7:00 am

Instead of actually using the existing Hammer Bro. NPC, it can often be easier to reskin one of the existing friendly NPCs (like Toad or Peach or Megan) to be a Hammer Bro. These NPCs don't do anything on their own, so are perfect for purposes like this.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest