Search found 119 matches

Go to advanced search

by Daring Tombstone
Sun Mar 03, 2019 10:04 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

I've been making a level that revolves around a timer where time is stopped and time is moving (time affects npc's and platforms not the player) and I've ran into a snag after finishing 2/3's of this level. When the player collects a power-up or gets hurt, it de-rails some platforms that's synced up...
by Daring Tombstone
Sun Feb 24, 2019 3:40 am
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

I'm attempting to onDraw an image on screen but needs to be drawn when you talk to an npc. I have it set to look a little something like this. function onEvent(bub) if bub == "pic" then picture = true eventu.run(Talk) end end function Talk() Text.showMessageBox("Hello let's see if that picture is wo...
by Daring Tombstone
Sun Feb 17, 2019 6:50 pm
Forum: Episodes
Topic: Your Journey Awaits
Replies: 71
Views: 10190

Re: Your Journey Awaits

Seems like an error in the multipoints script for this one I will take a look at it. Edit: Yes definitely a typo my apologies for this one. I will fix it and put up a new download for the fix. If you want to fix it yourself it's real easy if you have notepad++. In the 2.0 editor with this level (lev...
by Daring Tombstone
Fri Feb 08, 2019 8:47 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

I've used parallax in a few of my levels and they've turned out fine. I do believe that particular level though it does the same as the screenshot. Perhaps the level was made in an older version on smbx 2.0. I remember it working properly on an earlier version.
by Daring Tombstone
Tue Feb 05, 2019 1:52 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

Ah okay thanks. After looking through the colliders API after posting I figured it didn't cover BGO's. I could use colliders to destroy an NPC if it touches another NPC though right?
by Daring Tombstone
Mon Feb 04, 2019 7:55 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

Oh jeez yeah I should have figured. The whole time I've been using layers I've been thinking the boolean value as true was just saying *yes show the layer* as opposed to *yes don't show smoke*. Been using layers wrong this whole time. So dumb of me. Appreciate the help. Actual question this time. Wi...
by Daring Tombstone
Mon Feb 04, 2019 6:52 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

Very trivial question. Maybe I'm just being dumb today but can't figure out how to activate smoke using the Layer class. Wiki has it like this Layer:show(boolean noSmoke). So layer:show(true) but where to set noSmoke to false?
by Daring Tombstone
Fri Jan 25, 2019 5:45 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

The marginx and marginy was my problem. It is caused by misinformation and is actually supposed to be xMargin and yMargin. The words no longer bleed into the borders now. I will be wary when using textblox. Are the crashes just random or are they consistent?
by Daring Tombstone
Thu Jan 24, 2019 5:26 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

I've been trying to get textblox to work for better text boxes and behavior. I didn't like some sounds so I tried editing them in this manner. https://i.imgur.com/N4u15uH.png However the text bleeds into the borders like so when I do this. https://i.imgur.com/lJzgWPh.png Is there a setting I'm missi...
by Daring Tombstone
Thu Jan 24, 2019 5:14 pm
Forum: Episodes
Topic: Your Journey Awaits
Replies: 71
Views: 10190

Re: Your Journey Awaits

I swear that exit was fixed. I just went through it in smbx 2.0 and got to the secret exit just fine with no problems. I've been busy with another episode so I haven't paid much attention to this one, but if I need to I'll try to fix it. What exactly is the problem? If you don't know the warp is loc...
by Daring Tombstone
Sat Nov 24, 2018 9:14 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

Are you sure there's no in game events that's changing the music? I had an issue with music restarting unless I started the level on silence as well as any in game event not triggering music.
by Daring Tombstone
Fri Nov 23, 2018 6:56 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

Are you trying to have custom music, encounter a boss fight, then have another custom track start? If you're looking to use 2 custom soundtracks in the same section this can be easily done by just having a custom soundtrack onStart and having an event trigger the other custom track. So something lik...
by Daring Tombstone
Tue Nov 06, 2018 2:54 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

Sorry for this dumb question but I looked and couldn't find it. What's the default "Defines.player_walkspeed and runspeed" numbers? It's for a water current script I'm trying to do. Edit: Nevermind I found it, should have looked for a few more minutes longer. Runspeed is 6 and walkspeed is 3. So I w...
by Daring Tombstone
Sat Nov 03, 2018 1:16 am
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

Wow yeah that was it. Just a capitalization error. But now the AirOfPlayer1 is stuck at 100.
Probably just gonna do that workaround I mentioned earlier. Seems like too much trouble at this point.
by Daring Tombstone
Sat Nov 03, 2018 12:31 am
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

The value of "AirofPlayer1" doesn't change at all. It'd be a wall of text if I pasted the whole script here, but I'm editing the LsBreathMeter API that's in the beta 3 version. The info I gave earlier is basically just added in that API. But I found a workaround involving respriting a turnip into a ...
by Daring Tombstone
Fri Nov 02, 2018 11:30 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

I resprited the BGO 137 into some background bubbles but used the BGO 173 bubble to test it. The script works like it's supposed to because I can replace "AirofPlayer1" to "Defines.gravity" and when I enter the bubble gravity changes properly. For some reason though I can't set the "AirofPlayer1" in...
by Daring Tombstone
Fri Nov 02, 2018 2:38 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

This script doesn't do what I want it to. function onTick() local Air = BGO.get({137}) for k,v in pairs(Air) do if player.x + player.width >= v.x and player.x <= v.x + 32 and player.y + player.height >= v.y and player.y <= v.y + 32 and not v.layer.isHidden then collidesWithData = true break end end ...
by Daring Tombstone
Thu Nov 01, 2018 3:43 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145074

Re: Need help with lua? - LunaLua General Help

Messing with the LsBreathMeter API and wanted to have it where if a player hits a resprited axe (a bubble) it would give air back to the player using onNPCKill. However if the axe(bubble) goes offscreen it dies and gives the player air anyways. Can I set it where it only gives air back if the player...
by Daring Tombstone
Mon Oct 15, 2018 1:31 am
Forum: Episodes
Topic: Your Journey Awaits
Replies: 71
Views: 10190

Re: Your Journey Awaits

It is in the wrong spot. What's wrong with me. I guess it doesn't skip much but I'll have it fixed.

When the timer expires the screen turns black, a message shows stating you lose, and you die. Basically just a smw timer but just for that fight without the use of lua.

Edit: Fixed.
by Daring Tombstone
Thu Oct 11, 2018 3:23 pm
Forum: Episodes
Topic: Your Journey Awaits
Replies: 71
Views: 10190

Re: Your Journey Awaits

I didn't think of that. I can have it where if you spawn at the multipoint the bombomb will assume they're dead so you won't have to go back. It'll be updated very shortly.

Edit: Current download for 2.0 has this fix.

Go to advanced search