Search found 36 matches

Go to advanced search

by DeMuZ
Sat Mar 30, 2019 7:22 pm
Forum: LunaLua
Topic: SMBX2 PAL Release - Feedback, Questions and Bugs here!
Replies: 970
Views: 386480

Re: SMBX2 MAGLX3 Release - Feedback, Questions and Bugs here!

Code: Select all

SavaData[Level.filename()] = SavaData[Level.filename()] or {}
tfw you try to make a level and you get a debug window after writing just one line of code XD
Image
by DeMuZ
Thu Jan 17, 2019 2:16 pm
Forum: Episodes
Topic: [2.0 Beta 3] teon.origins
Replies: 8
Views: 1127

Re: [2.0 Beta 3] teon.origins

Did you forget to delete the savefile? Is it safe to delete it? I'm starting the game with a bunch of random stuff. This looks awesome though, despite the weird opening post in this thread! It's very promising! What to do in the first level in the area with arrows next to apples? Well, you can clim...
by DeMuZ
Sun Dec 30, 2018 6:49 pm
Forum: Episodes
Topic: [2.0 Beta 3] teon.origins
Replies: 8
Views: 1127

[2.0 Beta 3] teon.origins

hi! DeMuZ here. here's 1st episode of The Episode of Nonsense series teon.origins BEWARE N00BS btw, may contain some swears enjoy this is not a joke staff: >DeMuZ (creator of this beautiful ep) >LunarImouto (betatester, a bunch of ideas, also known as Hatebz) >Flower35 (some ideas) >YellowRelic3714 ...
by DeMuZ
Mon Aug 28, 2017 9:19 am
Forum: LunaLua
Topic: NSMB_Walljumps.lua
Replies: 3
Views: 942

Re: NSMB_Walljumps.lua

Imho this API is preeeetty good.
by DeMuZ
Fri Feb 17, 2017 9:53 am
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

Is there any function which returns the number of the save slot? :v
by DeMuZ
Sun Jan 29, 2017 9:43 am
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

Is there any way to respawn (only) killed npcs?
by DeMuZ
Fri Jan 06, 2017 8:17 am
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

Can someone help me with disabling saving on the overworld, and replace it with talking to a npc inside a level to save? I'm still struggling with the basics of Lunalua and any help would be appreciated. The easiest way to make player unable to save is to make the game think all the time that he ha...
by DeMuZ
Sat Dec 24, 2016 3:32 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

That won't work. Instead, pick spawn coordinates and after that do a getIntersecting check around that box and spawn the NPC only if the returned list is empty: local spawnX, spawnY = rng.random(a,b), rng.random(c,d) local collidingBlocks = Block.getIntersecting(spawnX - 16, spawnY - 16, spawnX + 1...
by DeMuZ
Sat Dec 24, 2016 3:22 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

What exactly are you asking? Nothing is nothing and is there when you don't tell anything else to be there. Nothing doesn't need to be placed. I just want to make sth spawn randomly in empty space of this section and I'm trying to find the simpliest way to do this xd http://i.imgur.com/3g0iKQ2.png ...
by DeMuZ
Sat Dec 24, 2016 2:53 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

Can I treat nothing as a block? If the answer is yes, then what ID should I use for it?
by DeMuZ
Wed Dec 21, 2016 3:48 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

Thing is, 99% of people use spritesheets rather than animated files caue they're easier to make and easier to edit. Loading the animated file I think converts it into seperate images, too, which kinda follows the same idea. So the best option if the animations doesn't work is to remake the graphics...
by DeMuZ
Wed Dec 21, 2016 1:34 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

Thing is, 99% of people use spritesheets rather than animated files caue they're easier to make and easier to edit. Loading the animated file I think converts it into seperate images, too, which kinda follows the same idea. So the best option if the animations doesn't work is to remake the graphics...
by DeMuZ
Wed Dec 21, 2016 12:51 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

I'm tired of trying to make that f***ing animations work... Here are the graphics I wanted to use: http://imgur.com/a/fSxiV
Please, just make them work with Graphics.drawImageToSceneWP() help ;-;
by DeMuZ
Mon Dec 19, 2016 4:43 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

Well a simple way to draw the right frame, is to make a local variable of the current frame you want to draw: local frameNum_ssj0 = 1 -- <code> -- somewhere for rendering Graphics.draw(ssj0[frameNum_ssj0], X1, Y1, 5) frameNum_ssj0 = frameNum_ssj0 + 1 if frameNum_ssj0 > #ssj0 then frameNum_ssj0 = 1 ...
by DeMuZ
Sun Dec 18, 2016 11:57 am
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

I posted links for that animations a few posts ago. Just right-click and save. I think it'll be more helpful (for me) than just giving the number of frames.
by DeMuZ
Sun Dec 18, 2016 8:36 am
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

Ok... I think I'm too dumb to make my code work with animated gif :v If someone makes it work, he'll be given a virtual cookie. The whole code: local colliders = loadSharedAPI("colliders") local rng = loadSharedAPI("rng") local encrypt = loadSharedAPI("encrypt") xData = encrypt.Data(Data.DATA_WORLD,...
by DeMuZ
Sat Dec 17, 2016 6:39 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

My code seems to be correct now, but it still doesn't work. Maybe I'm using wrong files?
https://cdn.discordapp.com/attachments/ ... macja2.gif
https://cdn.discordapp.com/attachments/ ... macja4.gif
by DeMuZ
Sat Dec 17, 2016 1:52 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

A TABLE??? Oh... i forgot about it :( thanks btw, X1 and Y1 were defines, that was only a few lines of my code Loads an animated image (i.e. gifs) and returns a table of each frame in the animated image. The second return argument is the average frame speed (SMBX frames per frame switch) given by th...
by DeMuZ
Sat Dec 17, 2016 12:22 pm
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

Code: Select all

local ssj0 = Graphics.loadAnimatedImage(getSMBXPath().."\\worlds\\The Seven Stars (by DeMuZ)\\hud gfx\\ssj 0.gif")

function onTick()
	Graphics.drawImageToSceneWP(ssj0, X1, Y1, 5)
end
Am I doing it wrong? It doesn't work.
by DeMuZ
Sat Dec 03, 2016 11:50 am
Forum: LunaLua
Topic: Need help with lua? - LunaLua General Help
Replies: 1502
Views: 145081

Re: Need help with lua? - LunaLua General Help

Is it possible to load an API from custom directory instead of LuaScriptsLib folder? (For example my own episode folder)

Go to advanced search