Thunder Flower (WIP, need help)

Share and discuss custom LunaLua code and content packs for SMBX2.
AlanLive2020
Dolphin
Dolphin
Posts: 94
Joined: Fri Nov 27, 2020 8:15 am

Thunder Flower (WIP, need help)

Postby AlanLive2020 » Sat Nov 28, 2020 6:39 pm

Hello. I have been playing this for years but I'm new to the forums. I want to create some custom powerups. This is one of my first lua projects ever

It partially works, but I need help on these things with the projectile you can shoot.

1. Make it go in a straight line
2. Make it travel at twice the speed it currently goes at.

http://www.mediafire.com/file/smxtwqajp ... 9.rar/file < Here it is

I still don't know much about lua, I just got started like 4 days ago.

Help would be appreciated. Also you can use the powerup in any level you want.

I posted this here instead of on Lua help because it actually works, but has some issues.

Also need help on this > viewtopic.php?f=102&t=26471

Edit: I forgot the screenshot
Image
Last edited by AlanLive2020 on Sun Nov 29, 2020 10:18 am, edited 2 times in total.

Murphmario
Chargin' Chuck
Chargin' Chuck
Posts: 2382
Joined: Fri Dec 20, 2013 7:07 pm
Pronouns: he/him

Re: Thunder Flower (WIP, need help)

Postby Murphmario » Sat Nov 28, 2020 6:49 pm

Some of these issues might be resolved if you make the lightning bolt it's own NPC instead of having it replace the standard player fireball. Pretty sure that's causing at least some of the problems.

AlanLive2020
Dolphin
Dolphin
Posts: 94
Joined: Fri Nov 27, 2020 8:15 am

Re: Thunder Flower (WIP, need help)

Postby AlanLive2020 » Sat Nov 28, 2020 6:51 pm

Thanks, ill try that

AlanLive2020
Dolphin
Dolphin
Posts: 94
Joined: Fri Nov 27, 2020 8:15 am

Re: Thunder Flower (WIP, need help)

Postby AlanLive2020 » Sat Nov 28, 2020 7:00 pm

So I changed the id to npc-751, but now it just throws a standard fireball, why does that happen? Do you need do something else first to be able to add a new npc?

Murphmario
Chargin' Chuck
Chargin' Chuck
Posts: 2382
Joined: Fri Dec 20, 2013 7:07 pm
Pronouns: he/him

Re: Thunder Flower (WIP, need help)

Postby Murphmario » Sat Nov 28, 2020 10:22 pm

AlanLive2020 wrote:
Sat Nov 28, 2020 7:00 pm
So I changed the id to npc-751, but now it just throws a standard fireball, why does that happen? Do you need do something else first to be able to add a new npc?
Add code to replace everyone instance of the player fireball with npc-751 while the player is in their fire form.

AlanLive2020
Dolphin
Dolphin
Posts: 94
Joined: Fri Nov 27, 2020 8:15 am

Re: Thunder Flower (WIP, need help)

Postby AlanLive2020 » Sun Nov 29, 2020 6:04 am

How do I do that? I change everything in the script that was npc-13 to npc-751 but the game doesn't recognize it, I don't see it in the custom category.

Added in 14 minutes 23 seconds:
I managed to get it destroyed when it hits a wall, so at least I made some progress.

AlanLive2020
Dolphin
Dolphin
Posts: 94
Joined: Fri Nov 27, 2020 8:15 am

Re: Thunder Flower (WIP, need help)

Postby AlanLive2020 » Sat Dec 19, 2020 12:12 pm

pls lock topic


Return to “LunaLua”

Who is online

Users browsing this forum: Peppyroni and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari