Page 1 of 1
Boo troubles
Posted: Sat Feb 11, 2017 11:02 am
by goatnorth
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.
Re: Boo troubles
Posted: Sat Feb 11, 2017 11:05 am
by TUWAN
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.
Re: Boo troubles
Posted: Sat Feb 11, 2017 11:36 am
by goatnorth
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.
Re: Boo troubles
Posted: Sat Feb 11, 2017 12:31 pm
by PixelPest
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
Re: Boo troubles
Posted: Sat Feb 11, 2017 3:06 pm
by goatnorth
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.
Re: Boo troubles
Posted: Sat Feb 11, 2017 3:17 pm
by goatnorth
It didn't work.
I put in the id and all, but they still stop whenever I look towards them.