Need help with any SMBX game-related issues? Ask your questions here.
Moderator: Userbase Moderators
|
|
|
|
-
DKC ambience
- Bob-Omb

- Posts: 24
- Joined: Mon Jul 29, 2019 9:21 pm
- Flair: Hi! Came back after problems with my computer.
Postby DKC ambience » Thu Sep 12, 2019 2:57 pm
Hi, I recently realized that there is an option called: level options. And this option contains very good elements like putting TIME and DISABLING CONTROLS, but ......
These options are disabled, and I want to be able to use them, since my world doesn't have so much sense without time or skills. Is it possible to enable these options? 
|
|
|
|
|
|
|
|
|
-
Emral
- Cute Yoshi Egg

- Posts: 9891
- Joined: Mon Jan 20, 2014 12:58 pm
- Flair: Phoenix
Postby Emral » Thu Sep 12, 2019 3:12 pm
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.
|
|
|
|
|
|
|
|
|
-
Cedur
- Link

- Posts: 7073
- Joined: Tue Jun 28, 2016 10:14 am
- Flair: I'm gone, for chess and minesweeper
- Pronouns: he/him
Postby Cedur » Thu Sep 12, 2019 3:18 pm
So I guess these options are supposed to be implemented at a later time?
|
|
|
|
|
|
|
|
|
-
ElectriKong
- Bowser

- Posts: 4653
- Joined: Mon Jun 06, 2016 4:32 pm
- Pronouns: he/him
-
Contact:
Postby ElectriKong » Thu Sep 12, 2019 3:35 pm
Those options are for the PGE engine and have yet to be implemented in SMBX, hence they are greyed out.
|
|
|
|
|
|
|
|
|
-
DKC ambience
- Bob-Omb

- Posts: 24
- Joined: Mon Jul 29, 2019 9:21 pm
- Flair: Hi! Came back after problems with my computer.
Postby DKC ambience » Thu Sep 12, 2019 3:55 pm
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.
edit: And yes, I hardly realize that the options are disabled.
Last edited by DKC ambience on Thu Sep 12, 2019 3:57 pm, edited 1 time in total.
|
|
|
|
|
|
|
|
|
-
Emral
- Cute Yoshi Egg

- Posts: 9891
- Joined: Mon Jan 20, 2014 12:58 pm
- Flair: Phoenix
Postby Emral » Thu Sep 12, 2019 3:56 pm
DKC ambience wrote: ↑Thu Sep 12, 2019 3:55 pm
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 named wrong or is in the wrong location. A screenshot of the folder it's in would help.
|
|
|
|
|
|
|
|
|
-
DKC ambience
- Bob-Omb

- Posts: 24
- Joined: Mon Jul 29, 2019 9:21 pm
- Flair: Hi! Came back after problems with my computer.
Postby DKC ambience » Thu Sep 12, 2019 4:05 pm
Enjl wrote: ↑Thu Sep 12, 2019 3:56 pm
DKC ambience wrote: ↑Thu Sep 12, 2019 3:55 pm
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 named wrong or is in the wrong location. A screenshot of the folder it's in would help.
yes, or the version I have is something weird or I'm doing totally wrong...

|
|
|
|
|
|
|
|
|
-
Emral
- Cute Yoshi Egg

- Posts: 9891
- Joined: Mon Jan 20, 2014 12:58 pm
- Flair: Phoenix
Postby Emral » Thu Sep 12, 2019 4:23 pm
That's not a screenshot of the folder, and it says the file is just called "luna", which makes me suspicious.
|
|
|
|
|
|
|
|
|
-
DKC ambience
- Bob-Omb

- Posts: 24
- Joined: Mon Jul 29, 2019 9:21 pm
- Flair: Hi! Came back after problems with my computer.
Postby DKC ambience » Thu Sep 12, 2019 9:08 pm
Enjl wrote: ↑Thu Sep 12, 2019 4:23 pm
That's not a screenshot of the folder, and it says the file is just called "luna", which makes me suspicious.
Oh true, sorry xD
|
|
|
|
|
|
|
|
|
-
Emral
- Cute Yoshi Egg

- Posts: 9891
- Joined: Mon Jan 20, 2014 12:58 pm
- Flair: Phoenix
Postby Emral » Thu Sep 12, 2019 9:18 pm
... 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 right location (the level folder), then your code will work.
|
|
|
|
|
|
|
|
|
-
DKC ambience
- Bob-Omb

- Posts: 24
- Joined: Mon Jul 29, 2019 9:21 pm
- Flair: Hi! Came back after problems with my computer.
Postby DKC ambience » Thu Sep 12, 2019 9:41 pm
I think it worked, I hope everything goes well lol
|
|
|
|
|
Return to “Help and Support”
Users browsing this forum: No registered users and 1 guest
|