SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Lua (2.1.X) (https://mb.srb2.org/forumdisplay.php?f=105)
-   -   Red Star (Super Mario Galaxy) [V7 UPDATE] (https://mb.srb2.org/showthread.php?t=40650)

SSG3 07-04-2015 03:01 PM

Red Star (Super Mario Galaxy) [V7 UPDATE]
 
1 Attachment(s)
The Red Star from Super Mario Galaxy makes an appearance in SRB2. It's goal? To grant it's user (apart from those with CA_SWIM) the ability to fly! (or infinite flight for players with CA_FLY)

As there's no test map for this, terminal has to be used to spawn it. (or in doombuilder with mapthingnum 4050).

Controls:

Non-flyers, double jump while holding Custom 2 to start flying.
Custom 1 pauses you in midair while flying.
Custom 3 while flying will end a flight.
While flying, Jump button makes you fly up, Spin to go down (apart from holding Custom 1)

The powerup has a time limit of 64 seconds before you lose the powerup
You can refill the timer by grabbing another one before it runs out.

(For those of you curious of which music slot the powerup uses, it uses slot 9, the old DSZ1 music)

Copyright to Nintendo for the sounds and music (just in case, I never know when I'll need it)

And for those of you that are wondering, it IS intentional for the bots to enhance these effects, too.
http://giant.gfycat.com/EducatedThornyBaiji.gifhttp://giant.gfycat.com/DeadEminentI...hitesetter.gifhttp://giant.gfycat.com/MintyHardAustralianfurseal.gif

Spoiler: ChangeLog
V7 - Sonic now uses a custom sprite when flying. Sprite courtesy of Hedgefox.
Final bugfix to metal sonic and metal anyone being invisible when flying, for sure.

V6 - Fix to Metal Sonic and Metal Anyone being invisible when flying.

V5 - Changed from not holding custom 2 to holding custom 2 to activate flight. (Horray for AbilitySpecial)
Added support for CA_NONE users to fly.
Metal sonic goes at his normalspeed in his S_SKIN when flying to prevent overdrive activation.

V4 - A warning sound now plays when you have 3 seconds of power left.
The speed of flight is the player's normalspeed + 15*FRACUNIT.

V3.2 - Initial Release.

HellHawkX 07-05-2015 06:16 PM

Welcome to releases

Sapheros 07-05-2015 06:17 PM

Nice to see something.... interesting, Maybe in the future you could make a test level that could make this ability more useful?

Either way, Welcome to releases. I truly look forward to you completing your other projects.

PingasPingas7 07-05-2015 06:19 PM

Good work buddy now lets see what work you will pull out next

Lat' 07-05-2015 06:56 PM

I might suggest to make the color blink when the power-up is almost finished or to add a visible timer, because counting 64 seconds isn't the best thing, and the music doesn't really give a clue about when exactly the power-up will end and let you fall down ACZ pits.

Also, I see you didn't take my advice: This power up looks like a downgrade in the way that it makes you go soooo slow!
And RIP CA_NONE characters.

SSG3 07-05-2015 07:44 PM

Quote:

Originally Posted by "Lat'" (Post 770115)
I might suggest to make the color blink when the power-up is almost finished or to add a visible timer, because counting 64 seconds isn't the best thing, and the music doesn't really give a clue about when exactly the power-up will end and let you fall down ACZ pits.

Also, I see you didn't take my advice: This power up looks like a downgrade in the way that it makes you go soooo slow!
And RIP CA_NONE characters.

Advice taken, lat. Check the changelog for details. V4 is out.

DarkJesse 07-05-2015 08:03 PM

Oh cool i like it

Rumia1 07-06-2015 04:47 AM

For CA_NONE characters, couldn't you do something like check if the player has jumped and then pressed jump in the air?

Maybe it's just me and I'm crazy (it's been known to happen).

SSG3 07-06-2015 07:28 AM

Quote:

Originally Posted by Rumia1 (Post 770127)
For CA_NONE characters, couldn't you do something like check if the player has jumped and then pressed jump in the air?

Maybe it's just me and I'm crazy (it's been known to happen).

Just realised, as it checks for PF_THOKKED, CA_NONE characters can activate it with a jump shield.

Hazard88263 07-08-2015 12:41 PM

Quick question... is the flight supposed to be stoppable? I can't seem to stop myself. Other than that, great job!

SSG3 07-08-2015 02:57 PM

Quote:

Originally Posted by Hazard88263 (Post 770187)
Quick question... is the flight supposed to be stoppable? I can't seem to stop myself. Other than that, great job!

Please explain what you mean. I can't figure out what you're talking about.

Hazard88263 07-08-2015 03:33 PM

Quote:

Originally Posted by SSG3 (Post 770189)
Please explain what you mean. I can't figure out what you're talking about.

What I meant was, "Am I supposed to be able to stop the flight once I start flying?" Like being able to stop flying and land on the ground.

Zipper 07-08-2015 03:35 PM

Quote:

Originally Posted by Hazard88263 (Post 770190)
What I meant was, "Am I supposed to be able to stop the flight once I start flying?" Like being able to stop flying and land on the ground.

Press Custom 3

SSG3 07-08-2015 04:26 PM

Quote:

Originally Posted by Zipper (Post 770191)
Press Custom 3

Got the words right out of my mouth.

Yes, Hazard, as Mario can in galaxy with the duck button.

Kiylo 07-15-2015 12:32 AM

...when i tried spawning it, it ended up crashing my game

StarmakerJasper 07-15-2015 12:51 AM

Quote:

Originally Posted by Rumia1 (Post 770127)
For CA_NONE characters, couldn't you do something like check if the player has jumped and then pressed jump in the air?

I believe CA_NONE characters are excluded from using it because most if not all characters that have Lua-fueled abilities won't be assigned a normal one and will instead be assigned CA_NONE.

See, when you code an ability for a character and you finally get it to work normally in the vanilla game, you most likely won't be adding any exceptions to add-ons that may confict with it. The Red Star here for example requires the jump button to rise, and multiple characters use the jump button for custom abilities. If the above restriction of CA_NONE was not there, you'd see really silly things like Jasper shooting stars while flying with a Red Star or Shadow using Chaos Control and completely breaking how the Red Star moves the player.

Even having these CA_NONE characters use the Red Star after using a Whirlwind Shield is a little risky... some don't properly check to see if a character can still use their ability, and some people might want their character to be able to perform their ability after using the shield! There's a lot of uncontrollable factors involved with getting an add-on to work with every character out there, and it's much easier (and standard) to simply sanction it to work with vanilla characters and abilities.

Rumia1 07-16-2015 07:13 AM

http://giant.gfycat.com/UnsungGloomy...riechicken.gifYou were saying?

(I really just gave Jasper CA_DOUBLEJUMP to make sure it recognized he used his ability)

I also tested with Hinote and it works just about as well

Also Shadow, despite how buggy he currently is, works just fine with the red star. I didn't even have to give him or Hinote CA_DOUBLEJUMP to test it, either

EDIT: Yeah, I used the old version for this gif but I just tested all three characters again and it works perfectly fine, in fact the update fixed the bug where Jasper would still shoot a star while taking flight. As a side effect, however, you can no longer just hold down custom 3 to use Jasper's normal ability. (Honestly though, using AbilitySpecial would probably fix this...)

MetalKnux101 07-16-2015 08:34 AM

This wad is really fun to play around with.
https://d.maxfile.ro/mmmyxtwueu.gif https://d.maxfile.ro/hwpkepkqvt.gif https://d.maxfile.ro/wbcihzoguy.gif

SSG3 07-28-2015 04:28 PM

Quote:

Originally Posted by Jasper the Fox (Post 770384)
I believe CA_NONE characters are excluded from using it because most if not all characters that have Lua-fueled abilities won't be assigned a normal one and will instead be assigned CA_NONE.

See, when you code an ability for a character and you finally get it to work normally in the vanilla game, you most likely won't be adding any exceptions to add-ons that may confict with it. The Red Star here for example requires the jump button to rise, and multiple characters use the jump button for custom abilities. If the above restriction of CA_NONE was not there, you'd see really silly things like Jasper shooting stars while flying with a Red Star or Shadow using Chaos Control and completely breaking how the Red Star moves the player.

Even having these CA_NONE characters use the Red Star after using a Whirlwind Shield is a little risky... some don't properly check to see if a character can still use their ability, and some people might want their character to be able to perform their ability after using the shield! There's a lot of uncontrollable factors involved with getting an add-on to work with every character out there, and it's much easier (and standard) to simply sanction it to work with vanilla characters and abilities.

That's because the LUA checks for PF_THOKKED to check whether they can fly or not. I wasn't planning it to be used with custom characters, unfortunately, but if bugs arise from it, I'll add compatibility to that character to prevent it.

---------- Post added at 05:28 PM ---------- Previous post was at 05:06 PM ----------

Quote:

Originally Posted by Timothy Cyan-Tail'sFan (Post 770383)
...when i tried spawning it, it ended up crashing my game

That's just a problem your end. Try spawning it again, everyone else that spawned it didn't have their game crash.

SSG3 07-29-2015 11:22 AM

V5 is out, guys! Check the changelog for details on the current update.


All times are GMT. The time now is 11:20 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.