Need help with any SMBX game-related issues? Ask your questions here.
Moderator: Userbase Moderators
|
|
|
|
-
Nicholas-Link
- Buster Beetle

- Posts: 94
- Joined: Mon Feb 16, 2015 5:15 pm
Postby Nicholas-Link » Wed May 20, 2015 7:22 pm
Hello everyone, I have been gone for a while, but now I need help again... However, this time I have a lot of questions. If any of you can help me that would be most appreciated!
1. OK, so for one of my newest games, I am going to try out making a game using Luna.lua. (I have already downloaded it...) Even though I have my doubts on how to make it work right. So, I am coming to this community for help. First off, I have noticed that in some smbx games, people put dialog with a character's picture next to it. I am guessing they used layers and what not, but how would I make this work? (This is really hard to explain!)
2. Is there a way to add custom graphics without replacing default graphics?
3. I highly doubt this is possible in fact I don't even know what's the point of asking this, but here I go... Can you do really advanced cut scenes? Like... let's say you are going through the game and when you get to a certain part of the game the screen turns black and then it plays a short video. Can you do that through Luna.lua? And I don't mean the simple character control event thing. I am talking about inserting an actual video. I am only asking this because I plan on doing anime. So, I thought it would be neat if I added my own little anime cut scenes. However, like I said I highly doubt this is possible...
4. Finally, about the PGE_collaborator. I am a little confused on how it all works. I went to the site for information, and it helped, but there are still a few things that confuse me.
a) Alright, when you are changing the hit boxes, do you automatically have to use Luna.lua in order to make it work. Even if you changed it by one pixel?
b) I am also confused about saving the sheets. Sadly, I don't get any of it, so if somebody could kindly help me to understand saving on the program, that would be very helpful.
Thank you for your time, and I hope you and help me out with my questions! 
|
|
|
|
|
|
|
|
|
-
Emral
- Cute Yoshi Egg

- Posts: 9877
- Joined: Mon Jan 20, 2014 12:58 pm
- Flair: Phoenix
Postby Emral » Wed May 20, 2015 7:29 pm
1. The basics of showing and hiding layers using events. You can find all the information you need in the stickied topic.
2. No.
3. You don't need lua. You need video which you convert into an NPC and then manage with layers and events.
4a. I'm not experienced with PGE but NORMAL SMBX allows simple hitbox changes by using a npc code. There's a sticky topic for NPC codes.
4b. Someone else has to answer this.
|
|
|
|
|
|
|
|
|
-
Wohlstand
- Chargin' Chuck

- Posts: 2008
- Joined: Tue Feb 11, 2014 4:44 pm
- Flair: [ˈvoːlˌʃtant], 狐エンジニア
- Pronouns: he/him
-
Contact:
Postby Wohlstand » Wed May 20, 2015 8:43 pm
Nicholas-Link wrote:1. OK, so for one of my newest games, I am going to try out making a game using Luna.lua. (I have already downloaded it...) Even though I have my doubts on how to make it work right. So, I am coming to this community for help. First off, I have noticed that in some smbx games, people put dialog with a character's picture next to it. I am guessing they used layers and what not, but how would I make this work? (This is really hard to explain!)
Ermal answered to this question.
Nicholas-Link wrote:
2. Is there a way to add custom graphics without replacing default graphics?
Exception is: you have a reserved NPC slots from 293 to 300 which you can use. You can append new NPC's without replacing default. But, they are will work like to goombas. However you have side-control over them with LunaLUA. To put those NPC's to the level you have two ways:
1) edit lvl file with notepad [I recommends you to read LVL file specification if you don't know file format] and replace NPC-ID's of necessary NPC's to have placed NPC's after 292
2) If you have PGE Editor, do those steps:
- Open "configs/SMBX/lvl_npc.ini" file in akeplad or notepad++ if you see crap instead of normal text view in the regular notepad
- find the [npc-main] section and replace "total=292" with "total=300"
- find the [npc-1] section and copy whole entry.
- paste copied entry into bottom of file and replace section title with "npc-293", "npc-294", "npc-295", ....
- Inside each pasted section replace NPC name "Goomba" with "Reserved" to don't confuse in the NPC list with regular goomba
- Inside each pasted section replace "image" field with "npc-293.gif", "npc-294.gif".... and save this ini file
- Open configs/SMBX/data/graphics/level/npc
- Copy npc-1.gif and npc-1m.gif and paste as npc-293.gif, npc-293m.gif, npc-294.gif, npc-294m.gif,....
When you reload config without closing [Tools -> global configuration -> reload configs] of the editor (or when you will restart it) and you will can find in the level itembox [not in the tileset itembox!] and with filter search you can easily find your "reserved" NPC's or use search by ID: 293, 294, etc...
Those NPC slots made by Redigit but wasn't used, therefore when you want to create NPC.txt you must add ALL available parameters, or your NPC will not work correctly.
Nicholas-Link wrote:
4. Finally, about the PGE_collaborator. I am a little confused on how it all works. I went to the site for information, and it helped, but there are still a few things that confuse me.
PGE Calibrator guide here: http://engine.wohlnet.ru/pgewiki/Playab ... Calibrator. This tool used to configure playable character hitboxes and animations to use in the PGE Engine. Also this tool provides calibration of image without changing of hitbox settings which much useful for SMBX where you have no able re-configure hitbox. Limited ability to re-configure few hitbox parameters with LunaLUA to have custom hibox in the SMBX is provided.
Emral wrote:
4a. I'm not experienced with PGE but NORMAL SMBX allows simple hitbox changes by using a npc code. There's a sticky topic for NPC codes.
PGE Calibrator - tool for a playable characters, not for NPC's. NPC codes are hooking by PGE with same method as in the SMBX.
|
|
|
|
|
|
|
|
|
-
Nicholas-Link
- Buster Beetle

- Posts: 94
- Joined: Mon Feb 16, 2015 5:15 pm
Postby Nicholas-Link » Wed May 20, 2015 10:01 pm
Emral wrote:3. You don't need lua. You need video which you convert into an NPC and then manage with layers and events
Hm... I think I get what you are trying to say, however, could you give a little more detailed? What I don't get is how you convert a video into an NPC... if you could please explain that would be helpful...
Also, I have another question. (I know, I must be a pain right about now) Is it possible to make a character stronger? For example, a character can hop on a boss and it only takes 2 hits to kill it, while for another character it takes 3 hits.
|
|
|
|
|
|
|
|
|
-
Kevsoft
- Ripper II

- Posts: 375
- Joined: Sun Jul 27, 2014 8:03 am
Postby Kevsoft » Thu May 21, 2015 1:08 am
If you use Lua then really use cinematX. It is way better than putting a video as a npc.
|
|
|
|
|
|
|
|
|
-
Nicholas-Link
- Buster Beetle

- Posts: 94
- Joined: Mon Feb 16, 2015 5:15 pm
Postby Nicholas-Link » Thu May 21, 2015 7:07 am
Kevsoft wrote:If you use Lua then really use cinematX. It is way better than putting a video as a npc.
Nicholas-Link wrote:Also, I have another question. (I know, I must be a pain right about now) Is it possible to make a character stronger? For example, a character can hop on a boss and it only takes 2 hits to kill it, while for another character it takes 3 hits.
Ah... Thank you very much kevsoft. It may take a bit to get familiar with it, but it is totally worth it! Also, another question struck me. Can you extend Peach hover/floating ability? I was just wondering, because I am planning on making a certain character who can fly for a pretty long time. Not that I need peach to fly REALLY long, but just a couple more seconds will do perfectly!
(OK i'll admit it, I have a very big smbx episode I'm planning. So, I had a lot of interesting ideas, and I just wanted to see if they were possible. Hopefully, I'll be able to share some information about my upcoming game on the forums in about a month or so. I know that I will be spreading out the news on my home page very soon... In fact, maybe even today! So be sure to check it out!  )
Last edited by Nicholas-Link on Fri Jun 05, 2015 11:47 am, edited 1 time in total.
|
|
|
|
|
|
|
|
|
-
Kevsoft
- Ripper II

- Posts: 375
- Joined: Sun Jul 27, 2014 8:03 am
Postby Kevsoft » Thu May 21, 2015 11:11 am
Nicholas-Link wrote:Can you extend Peach hover/floating ability? I was just wondering, because I am planning on making a certain character who can fly for a pretty long time. Not that I need peach to fly REALLY long, but just a couple more seconds will do perfectly!
You probably want to look into player.PeachHoverTimer
you can test it yourself with:
Code: Select all function onLoop()
print("Player 1 Hover Timer: "..player.PeachHoverTimer, 20, 200)
if(player2)then
print("Player 2 Hover Timer: "..player2.PeachHoverTimer, 20, 240)
end
end
|
|
|
|
|
|
|
|
|
-
Nicholas-Link
- Buster Beetle

- Posts: 94
- Joined: Mon Feb 16, 2015 5:15 pm
Postby Nicholas-Link » Thu May 21, 2015 11:23 am
Wow! Thanks! Well, I think that pretty much covers it then. Of course that could change, but I am hoping nothing else will come up that confuses me. But, I'm sure there will be something else I'll get stuck on... (ugh! how embarrassing...)
|
|
|
|
|
|
|
|
|
-
Kevsoft
- Ripper II

- Posts: 375
- Joined: Sun Jul 27, 2014 8:03 am
Postby Kevsoft » Thu May 21, 2015 11:57 am
Nobody can know everything
If you have LunaLua related question you can post it here.
|
|
|
|
|
|
|
|
|
-
h2643
- Reznor

- Posts: 2890
- Joined: Sat Dec 21, 2013 7:23 am
-
Contact:
Postby h2643 » Thu May 21, 2015 12:12 pm
Wohlstand wrote:2) If you have PGE Editor, do those steps:
- Open "configs/SMBX/lvl_npc.ini" file in akeplad or notepad++ if you see crap instead of normal text view in the regular notepad
- find the [npc-main] section and replace "total=292" with "total=300"
- find the [npc-1] section and copy whole entry.
- paste copied entry into bottom of file and replace section title with "npc-293", "npc-294", "npc-295", ....
- Inside each pasted section replace NPC name "Goomba" with "Reserved" to don't confuse in the NPC list with regular goomba
- Inside each pasted section replace "image" field with "npc-293.gif", "npc-294.gif".... and save this ini file
- Open configs/SMBX/data/graphics/level/npc
- Copy npc-1.gif and npc-1m.gif and paste as npc-293.gif, npc-293m.gif, npc-294.gif, npc-294m.gif,....
When you reload config without closing [Tools -> global configuration -> reload configs] of the editor (or when you will restart it) and you will can find in the level itembox [not in the tileset itembox!] and with filter search you can easily find your "reserved" NPC's or use search by ID: 293, 294, etc...
Like this!?
|
|
|
|
|
|
|
|
|
-
Wohlstand
- Chargin' Chuck

- Posts: 2008
- Joined: Tue Feb 11, 2014 4:44 pm
- Flair: [ˈvoːlˌʃtant], 狐エンジニア
- Pronouns: he/him
-
Contact:
Postby Wohlstand » Thu May 21, 2015 12:37 pm
h2643 wrote:Wohlstand wrote:2) If you have PGE Editor, do those steps:
- Open "configs/SMBX/lvl_npc.ini" file in akeplad or notepad++ if you see crap instead of normal text view in the regular notepad
- find the [npc-main] section and replace "total=292" with "total=300"
- find the [npc-1] section and copy whole entry.
- paste copied entry into bottom of file and replace section title with "npc-293", "npc-294", "npc-295", ....
- Inside each pasted section replace NPC name "Goomba" with "Reserved" to don't confuse in the NPC list with regular goomba
- Inside each pasted section replace "image" field with "npc-293.gif", "npc-294.gif".... and save this ini file
- Open configs/SMBX/data/graphics/level/npc
- Copy npc-1.gif and npc-1m.gif and paste as npc-293.gif, npc-293m.gif, npc-294.gif, npc-294m.gif,....
When you reload config without closing [Tools -> global configuration -> reload configs] of the editor (or when you will restart it) and you will can find in the level itembox [not in the tileset itembox!] and with filter search you can easily find your "reserved" NPC's or use search by ID: 293, 294, etc...
Like this!?
Yes!
|
|
|
|
|
Return to “Help and Support”
Users browsing this forum: Semrush [Bot] and 1 guest
|