Need help with any SMBX game-related issues? Ask your questions here.
Moderator: Userbase Moderators
|
|
|
|
-
Guysmiley77
- Cheep-Cheep

- Posts: 12
- Joined: Fri Apr 29, 2022 1:46 am
- Pronouns: He/him/his
Postby Guysmiley77 » Fri Apr 29, 2022 3:26 pm
I am working on an episode called "Adventures throughout the Days" which is an adventure traveling through the day. Dawn, Day, Dusk and Dark. I managed to complete 3 levels and I am working on the 4th which focuses on "Bullet Bills". However I have a problem.
I'm trying to make 4 colored Bullet Bills move a different speeds depending on what color they are.
Blue- 2
Green- 4
Yellow- 6
Red- 8
Good news and bad news. The good news is that I have all the Bullet Bills assembled and in the air. The blue one seems to move fine.
The bad news is that the others won't move at all. What should I do?
|
|
|
|
|
|
|
|
|
-
deice
- Rocky Wrench

- Posts: 622
- Joined: Fri Jul 23, 2021 7:35 am
Postby deice » Fri Apr 29, 2022 4:27 pm
you should probably upload any custom assets (txt files, lua code) as well as the level file itself in order to get more meaningful help. without those things, best anyone can do is warrant educated guesses which isn't very efficient.
|
|
|
|
|
|
|
|
|
-
Guysmiley77
- Cheep-Cheep

- Posts: 12
- Joined: Fri Apr 29, 2022 1:46 am
- Pronouns: He/him/his
Postby Guysmiley77 » Sat Apr 30, 2022 12:20 am
|
|
|
|
|
|
|
|
|
-
deice
- Rocky Wrench

- Posts: 622
- Joined: Fri Jul 23, 2021 7:35 am
Postby deice » Sat Apr 30, 2022 7:44 am
well, i can tell you that there's a myriad of issues regarding the level, so much so that i can't tell what you're even trying to do exactly. you have the sample npc code copied over 4 times (which will obviously not do what you're trying to do on it's own), but then you didn't even place those npcs into the level (the custom lua code is applied to npc ids 751-753, but you've placed 675-677 into the level). also, "npc-17.lua" won't actually do anything as you can't overwrite basegame npc ai with lua code.
i recommend removing most of the content from the lua files for npcs 751-753 entirely and just putting
Code: Select all iswalker=true
frames=1
noblockcollision=true
into their txt files. the only parts of the lua files you should leave in are the ones that register harm types and death effects. (if you are keen on learning how to make custom npcs, i do implore you to at the very least read the comments within the template file as well as this page in the documentation)
(of course, don't forget to actually place those into your level instead of 675-677)
|
|
|
|
|
|
|
|
|
-
deice
- Rocky Wrench

- Posts: 622
- Joined: Fri Jul 23, 2021 7:35 am
Postby deice » Sat Apr 30, 2022 5:50 pm
this one is broken for different reasons. the npc lua files are not even in the right format (it seems to be a template for a level's lua code instead) and all "tank_bullet.lua" does is play a sound effect.
also, even though you said you'd placed 751-753 inside the level, the supplied zip file still has 675-677 placed inside, all you've done is change the custom tileset within pge's menu without actually replacing any npcs inside the level. not to mention, the fix from my previous post in this case won't work as intended because (for whatever reason) you elected to remove the "speed" setting from the npc text files.
i really don't mean to sound harsh, but from what i can see you don't seem to really have an entirely firm grasp on the editor and engine quite yet. that's fine, everyone has to start somewhere, but you shouldn't just throw things at a wall and expect them to somehow do what you want them to.
some good resources to help you find your way around better (since you know about custom graphics and text files, i'll spare you the really basic stuff):
|
|
|
|
|
|
|
|
|
-
Guysmiley77
- Cheep-Cheep

- Posts: 12
- Joined: Fri Apr 29, 2022 1:46 am
- Pronouns: He/him/his
Postby Guysmiley77 » Sat Apr 30, 2022 7:22 pm
Fixed it.
https://cdn.discordapp.com/attachments/ ... _1-4_4.zip
Added in 1 minute 49 seconds:
deice wrote: ↑Sat Apr 30, 2022 5:50 pm
this one is broken for different reasons. the npc lua files are not even in the right format (it seems to be a template for a level's lua code instead) and all "tank_bullet.lua" does is play a sound effect.
also, even though you said you'd placed 751-753 inside the level, the supplied zip file still has 675-677 placed inside, all you've done is change the custom tileset within pge's menu without actually replacing any npcs inside the level. not to mention, the fix from my previous post in this case won't work as intended because (for whatever reason) you elected to remove the "speed" setting from the npc text files.
i really don't mean to sound harsh, but from what i can see you don't seem to really have an entirely firm grasp on the editor and engine quite yet. that's fine, everyone has to start somewhere, but you shouldn't just throw things at a wall and expect them to somehow do what you want them to.
some good resources to help you find your way around better (since you know about custom graphics and text files, i'll spare you the really basic stuff):
I'm confused.
|
|
|
|
|
|
|
|
|
-
deice
- Rocky Wrench

- Posts: 622
- Joined: Fri Jul 23, 2021 7:35 am
Postby deice » Sun May 01, 2022 6:56 am
the fix i already outlined in one of my previous posts yields the following result:

which is, judging by your original post, the intended behavior.
however, if your only response to a detailed description of what you did wrong and geniune advice is
then i'm afraid that i personally have nothing further to offer as the solution is already in this thread.
|
|
|
|
|
|
|
|
|
-
Guysmiley77
- Cheep-Cheep

- Posts: 12
- Joined: Fri Apr 29, 2022 1:46 am
- Pronouns: He/him/his
Postby Guysmiley77 » Mon May 02, 2022 12:13 am
Wow! How did you do it!?
|
|
|
|
|
|
|
|
|
-
Guysmiley77
- Cheep-Cheep

- Posts: 12
- Joined: Fri Apr 29, 2022 1:46 am
- Pronouns: He/him/his
Postby Guysmiley77 » Mon May 02, 2022 4:05 pm
deice wrote: ↑Sun May 01, 2022 6:56 am
the fix i already outlined in one of my previous posts yields the following result:

which is, judging by your original post, the intended behavior.
however, if your only response to a detailed description of what you did wrong and geniune advice is
then i'm afraid that i personally have nothing further to offer as the solution is already in this thread.
How did you get 4 bullet bills to do that?
|
|
|
|
|
|
|
|
|
-
deice
- Rocky Wrench

- Posts: 622
- Joined: Fri Jul 23, 2021 7:35 am
Postby deice » Mon May 02, 2022 5:25 pm
Guysmiley77 wrote: ↑Mon May 02, 2022 4:05 pm
How did you get 4 bullet bills to do that?
pardon me, but it feels like you're not reading my entire posts. the post you quoted says "the fix i already outlined" which is referring to my first reply after you sent your level file. scroll up in the thread and read it.
|
|
|
|
|
|
|
|
|
-
Guysmiley77
- Cheep-Cheep

- Posts: 12
- Joined: Fri Apr 29, 2022 1:46 am
- Pronouns: He/him/his
Postby Guysmiley77 » Mon May 02, 2022 6:21 pm
deice wrote: ↑Mon May 02, 2022 5:25 pm
Guysmiley77 wrote: ↑Mon May 02, 2022 4:05 pm
How did you get 4 bullet bills to do that?
pardon me, but it feels like you're not reading my entire posts. the post you quoted says "the fix i already outlined" which is referring to my first reply after you sent your level file. scroll up in the thread and read it.
Oh. Well thanks for your help.
Added in 33 minutes 21 seconds:
Should I just start the whole coding thing all over again?
Added in 7 minutes 35 seconds:
I'm just going to start coding all over again.
Added in 12 minutes 17 seconds:
deice wrote: ↑Sun May 01, 2022 6:56 am
the fix i already outlined in one of my previous posts yields the following result:

which is, judging by your original post, the intended behavior.
however, if your only response to a detailed description of what you did wrong and geniune advice is
then i'm afraid that i personally have nothing further to offer as the solution is already in this thread.
Ok. What did I do wrong again? Explain?
Added in 2 hours 43 minutes 25 seconds:
Can I at least have the level with my expected results that you made, so I can remember for next time?
Added in 4 hours 55 minutes 19 seconds:
I just decided to delete all my coding
https://cdn.discordapp.com/attachments/ ... Coding.zip
Start from scratch to make it easier so I can have a fresh start on this.
|
|
|
|
|
|
|
|
|
-
Guysmiley77
- Cheep-Cheep

- Posts: 12
- Joined: Fri Apr 29, 2022 1:46 am
- Pronouns: He/him/his
Postby Guysmiley77 » Wed May 04, 2022 10:48 pm
Can I please at least have the coding you did to make my Bullet Bills work as they should?
Added in 2 hours 50 minutes 35 seconds:
I did it!!
I finally got them to work!!
|
|
|
|
|
Return to “Help and Support”
|