Boo troubles

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

goatnorth
Shy Guy
Shy Guy
Posts: 7
Joined: Sat Feb 11, 2017 10:42 am

Boo troubles

Postby goatnorth » Sat Feb 11, 2017 11:02 am

I need a little help.
Help with Boos, of all things.

I want to try to create a level (heck, maybe an episode) based on the Green Demon Challenge from SM64.
For those that don't know what that is, you basically try to get the 8 red coins and the star before a 1-up reaches you. (in levels where a 1-up chases you)
In my opinion, the best enemy for this sort of thing would be one of the Boos, but their main trait makes this much, much harder. Because the player can just look at them to stop them!

So, I was wondering if there was a way to prevent Boos from stopping when the player looks at them.

I created an account just for this question, by the way. Even though I want to enter the SMBX community.

TUWAN
Flurry
Flurry
Posts: 181
Joined: Sun Mar 06, 2016 11:50 am
Pronouns: she/her

Re: Boo troubles

Postby TUWAN » Sat Feb 11, 2017 11:05 am

goatnorth wrote:I need a little help.
Help with Boos, of all things.

I want to try to create a level (heck, maybe an episode) based on the Green Demon Challenge from SM64.
For those that don't know what that is, you basically try to get the 8 red coins and the star before a 1-up reaches you. (in levels where a 1-up chases you)
In my opinion, the best enemy for this sort of thing would be one of the Boos, but their main trait makes this much, much harder. Because the player can just look at them to stop them!

So, I was wondering if there was a way to prevent Boos from stopping when the player looks at them.

I created an account just for this question, by the way. Even though I want to enter the SMBX community.
I'm pretty sure you could use Lua for something like that. There might be a .txt file you could put into your files to do that too, but I'm not sure.

goatnorth
Shy Guy
Shy Guy
Posts: 7
Joined: Sat Feb 11, 2017 10:42 am

Re: Boo troubles

Postby goatnorth » Sat Feb 11, 2017 11:36 am

TUWAN wrote:I'm pretty sure you could use Lua for something like that. There might be a .txt file you could put into your files to do that too, but I'm not sure.
Although I was expecting someone to answer that, I'm still grateful for your answer.
And now, I must leave to learn how to use Lua.

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Boo troubles

Postby PixelPest » Sat Feb 11, 2017 12:31 pm

I'm not 100% sure if this would work, but you could try putting this in a lunadll.lua file, replacing the # symbol with the ID of the boo you are using (in your level's custom graphics folder):

Code: Select all

function onTick()
   for _, v in pairs(NPC.get(#)) do
      v.ai1 = 1;
   end
end 
This should force all boos to never be in an idle state

goatnorth
Shy Guy
Shy Guy
Posts: 7
Joined: Sat Feb 11, 2017 10:42 am

Re: Boo troubles

Postby goatnorth » Sat Feb 11, 2017 3:06 pm

PixelPest wrote:I'm not 100% sure if this would work, but you could try putting this in a lunadll.lua file, replacing the # symbol with the ID of the boo you are using (in your level's custom graphics folder):

Code: Select all

function onTick()
   for _, v in pairs(NPC.get(#)) do
      v.ai1 = 1;
   end
end 
This should force all boos to never be in an idle state
I'll try it. If it works, I'll reply, saying that it worked. If not, I'll reply with any possible error messages.

goatnorth
Shy Guy
Shy Guy
Posts: 7
Joined: Sat Feb 11, 2017 10:42 am

Re: Boo troubles

Postby goatnorth » Sat Feb 11, 2017 3:17 pm

It didn't work.
I put in the id and all, but they still stop whenever I look towards them.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari