Page 1 of 1

Thunder Flower (WIP, need help)

Posted: Sat Nov 28, 2020 6:39 pm
by AlanLive2020
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

Re: Thunder Flower (WIP, need help)

Posted: Sat Nov 28, 2020 6:49 pm
by Murphmario
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.

Re: Thunder Flower (WIP, need help)

Posted: Sat Nov 28, 2020 6:51 pm
by AlanLive2020
Thanks, ill try that

Re: Thunder Flower (WIP, need help)

Posted: Sat Nov 28, 2020 7:00 pm
by AlanLive2020
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?

Re: Thunder Flower (WIP, need help)

Posted: Sat Nov 28, 2020 10:22 pm
by Murphmario
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.

Re: Thunder Flower (WIP, need help)

Posted: Sun Nov 29, 2020 6:04 am
by AlanLive2020
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.

Re: Thunder Flower (WIP, need help)

Posted: Sat Dec 19, 2020 12:12 pm
by AlanLive2020
pls lock topic