Search found 7436 matches

Go to advanced search

by Enjl
Sun Sep 15, 2019 4:03 pm
Forum: Help and Support
Topic: moving platforms
Replies: 1
Views: 19

Re: moving platforms

viewtopic.php?f=35&t=10507
The UI looks different on SMBX2 and SMBX38A but the functionality is the same.
by Enjl
Sun Sep 15, 2019 11:21 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 4
Views: 67

Re: Shoot Bullets to player coordinate

You can spawn them in a for loop. Think something like this: local directionVector = vector(0, 8) -- down at speed 8 local lim = 20 --number of bullets for i=1, lim do local n = NPC.spawn(arguments) n.speedX = directionVector.x n.speedY = directionVector.y directionVector = directionVector:rotate(36...
by Enjl
Sun Sep 15, 2019 7:22 am
Forum: LunaLua Help
Topic: Shoot Bullets to player coordinate
Replies: 4
Views: 67

Re: Shoot Bullets to player coordinate

You might have to invert the vector in the code below... I always mix up the operands of the subtraction. This goes to after you spawned the new NPC. Replace invalid variable names with your proper names: -------------------------------------------------------- local speed = 5 local distanceBetweenP...
by Enjl
Sun Sep 15, 2019 7:00 am
Forum: Help and Support
Topic: Custom NPCs won't stop jumping up & down
Replies: 5
Views: 62

Re: Custom NPCs won't stop jumping up & down

Read the comments in onTickNPC again. I've about had it with you & your vague as hell replies. If you're going to reply to help, TRY EXPLAINING IN DETAIL GODDAMN IT!!! :evil: https://i.imgur.com/mftRHQr.png I figured if you read the code you must've come across this section, sorry. The three lines ...
by Enjl
Sun Sep 15, 2019 6:29 am
Forum: Help and Support
Topic: Custom NPCs won't stop jumping up & down
Replies: 5
Views: 62

Re: Custom NPCs won't stop jumping up & down

Read the comments in onTickNPC again.
by Enjl
Fri Sep 13, 2019 8:59 pm
Forum: Help and Support
Topic: How do I put the wall-jump in SMBX 2.0 PAL?
Replies: 2
Views: 53

Re: How do I put the wall-jump in SMBX 2.0 PAL?

viewtopic.php?f=87&t=16025 See if this still works. The final post in the topic also has a slightly altered script which might be good to check out.
by Enjl
Fri Sep 13, 2019 8:24 pm
Forum: General
Topic: Can you enable a cheat when a level starts?
Replies: 2
Views: 172

Re: Can you enable a cheat when a level starts?

For your lua file:

----------------------------------------------------
local rinkamaniacheat = Cheats.get("rinkamania")
if not rinkamaniacheat.active then
rinkamaniacheat:trigger(true)
end
----------------------------------------------------

True means there will be no sound effect.
by Enjl
Fri Sep 13, 2019 8:10 pm
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 137
Views: 9808

Re: Need help with lua? - LunaLua General Help

No. onBlockHit is a function like onTick or onNPCKill. yYou don't need to check for a block to be hit every frame, nor do you need to manually call it. I basically provided a replacement to the code you had. If it's not working, please use Misc.dialog(debug message) to find out where the issue lies....
by Enjl
Fri Sep 13, 2019 5:12 pm
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 137
Views: 9808

Re: Need help with lua? - LunaLua General Help

If you're on the PAL release, you can use onBlockHit instead: function onBlockHit(eventObj, v, fromUpSide, playerOrNil) if v.isValid and v.id == 283 then SFX.play(47) end end eventObj allows you to cancel the hit event, v is the block, fromUpSide is a boolean and playerOrNil is which player hit the ...
by Enjl
Thu Sep 12, 2019 9:18 pm
Forum: Help and Support
Topic: How i put the time in SMBXPal 2.0?
Replies: 10
Views: 95

Re: How i put the time in SMBXPal 2.0?

... no screenshot? Alright. I'll elaborate on my previous last sentence then. As you can see, the header of notepad says it's called "luna". Please open the save dialog and make sure the file is called "luna.lua", not "luna" or "luna.lua.txt". If you got the name right and the file is saved in the r...
by Enjl
Thu Sep 12, 2019 9:15 pm
Forum: LunaLua
Topic: [NPC Pack] Bumpties
Replies: 9
Views: 364

Re: [NPC Pack] Bumpties

deadlydiamond98 wrote:
Thu Sep 12, 2019 8:38 pm
what version are they for?
The LunaLua forum assumes the most recent release of SMBX2. At the time, this is the PAL build.
by Enjl
Thu Sep 12, 2019 6:42 pm
Forum: Graphic Request
Topic: SMB3 Kamikaze Koopa
Replies: 2
Views: 433

Re: SMB3 Kamikaze Koopa

SMBX2 uses PNG files too, so there's no need for 2 separate downloads.
by Enjl
Thu Sep 12, 2019 6:39 pm
Forum: Help and Support
Topic: Bizzare issue with custom graphics not loading and levels crashing (SMBX 2.0)
Replies: 7
Views: 143

Re: Bizzare issue with custom graphics not loading and levels crashing (SMBX 2.0)

Like I said, dots in level paths were an issue at the time of the PAL version's release I think. Renaming it to SMBX 2.0 sounds like a mistake for 2 reasons. Firstly, what I just said. Secondly, because it's called SMBX2, not SMBX 2.0. I'd be very surprised if the names with dots in them are the onl...
by Enjl
Thu Sep 12, 2019 4:23 pm
Forum: Help and Support
Topic: How i put the time in SMBXPal 2.0?
Replies: 10
Views: 95

Re: How i put the time in SMBXPal 2.0?

That's not a screenshot of the folder, and it says the file is just called "luna", which makes me suspicious.
by Enjl
Thu Sep 12, 2019 3:56 pm
Forum: Help and Support
Topic: How i put the time in SMBXPal 2.0?
Replies: 10
Views: 95

Re: How i put the time in SMBXPal 2.0?

it didn't work, but thanks anyway xD I think the options are not enabled, because at no time have I seen SMBX 2.0 videos with the time option. My thing didn't work? I wrote the timer library and tested it, so that's curious. My suspicion is that your lua code isn't running cause the file is either ...
by Enjl
Thu Sep 12, 2019 3:12 pm
Forum: Help and Support
Topic: How i put the time in SMBXPal 2.0?
Replies: 10
Views: 95

Re: How i put the time in SMBXPal 2.0?

In luna.lua:

local timer = require("timer")
timer.activate(SECONDS)

SECONDS should be the number that appears at the start in the corner. It defaults to 500. So if you leave it out and just have timer.activate(), the timer will start counting down from 500.
by Enjl
Thu Sep 12, 2019 12:36 pm
Forum: General
Topic: Characters you would like to see by the time SMBX 2.0 is out of beta?
Replies: 27
Views: 1242

Re: Characters you would like to see by the time SMBX 2.0 is out of beta?

Hoeloe wrote:
Thu Sep 12, 2019 12:21 pm
Cedur wrote:
Thu Sep 12, 2019 11:17 am
None at all. :twisted:
I too can't wait to play as Unnamed Collision Box.
hadron + noclip
by Enjl
Wed Sep 11, 2019 6:57 pm
Forum: Help and Support
Topic: Bizzare issue with custom graphics not loading and levels crashing (SMBX 2.0)
Replies: 7
Views: 143

Re: Bizzare issue with custom graphics not loading and levels crashing (SMBX 2.0)

Please check if there are any dots in your folder paths. If you find them, remove them. There used to be an issue with them and I don't think it was fixed by the time the PAL build was out.
by Enjl
Wed Sep 11, 2019 3:36 pm
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 137
Views: 9808

Re: Need help with lua? - LunaLua General Help

It means there is no file called "Uhhh.ogg" in the Beep Boop folder in the Test Level folder.
2 things (assuming PAL build):
1) SFX.play(Misc.resolveFile("Uhhh.ogg")) will search in the episode folder after searching in the level folder.
2) luna.lua in the episode folder is the new lunaworld.lua
by Enjl
Wed Sep 11, 2019 3:30 pm
Forum: General
Topic: Questions for level judges.
Replies: 5
Views: 144

Re: Questions for level judges.

Something I forgot to mention in my previous post but which I was just reminded of re: level ideas. SMB1 thru 3 weren't just pioneers in the sidescrolling platformer genre (with home console requiring longer games to make them worth the price), but also were developed on incredibly limited hardware....

Go to advanced search