SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Lua (https://mb.srb2.org/forumdisplay.php?f=105)
-   -   Victory Poses (https://mb.srb2.org/showthread.php?t=41883)

Sapheros 08-27-2016 06:47 PM

Victory Poses
 
1 Attachment(s)
you know I feel like Sonic and his friends don't feel accomplished enough when beating a level

http://i.imgur.com/KkW88pj.gif

There we go!

How it works: If the player is standing still and not moving (teetering) at the goal, the animation will play.

This mini-mod supports the following characters:
  • Vanilla Sonic
  • Vanilla Tails
  • Vanilla Knuckles
  • FSonic
  • TailsCD
  • Heroes Mod Sonic
  • Heroes Mod Knuckles
  • Rosy (and Rosebud)
  • Shadow
  • Heroes Mod Shadow
Please let me know of any other MB/Skybase released Sonic's, Tails', Knuckles', or FSonic's(wait wut) to add to this mini mod.

If you have a set of sprites to use as a victory pose for a custom character (AND HAVE PERMISSION TO DO SO), please contact me via PM, Discord, or Skype to submit them.

Known Issues:
Failing ERZ3's race portion will cause the animation to play in co-op.

Update 1.1: In an attempt to fix the animation from playing in NIGHTS stages, the script broke/didn't work. Now the error has been removed.

Update 2: Rosy and Shadow have been added with thanks to Soniko and Bright Tails/Commando Echidna,

Thanks to Motor for allowing permission of these sprites,
and Lat' for making them!

Sryder13 08-31-2016 01:13 AM

"Yeah, Not bad!"
Welcome to releases.

SANICBOOM644 08-31-2016 03:00 AM

This needs to be in 2.2

Flare957 08-31-2016 03:46 AM

This could be an issue on my end, but the animations aren't showing when I finish the act. I tried it with Sonic and FSonic, but nothing happened.

Steel Titanium 08-31-2016 04:05 AM

Yeah, this script is not working for me either.

Sapheros 08-31-2016 04:48 AM

Hoo boy, found the issue, turns out the way the script checked for NIGHTS stages broke the entire script (or something like that). This wad has been updated.

Flare957 08-31-2016 11:23 AM

I've tried it out and it seems to add only a small amount of victory to the game.
The animations themselves are okay, it's just the transition into them. Say for example you were running at top speed into the goal and your character doesn't stop in time to show the pose before the screen shows the results.

I have some suggestions for this to make it better.
1. Try making the characters skid to a stop upon finishing the level if they are moving fast enough to do so, including any AI e.g. Tails.
2. This ties into the previous point, if this is even remotely possible, can the results screen not be a still background as it defeats the purpose of having animated victory poses.
3. When playing the game in a 2D level, the pose doesn't transition very well and as such, would be better handled with some 2D specific sprites. An Idea could be to use a Sonic 3 inspired victory animation.

Other than those, it serves it's purpose very well, however in the end, it's up to you with what to do with this wad.

MK.exe 08-31-2016 11:39 AM

Looks great i hope to see more characters get the same treatment!.

This has to be in.... someone else said it.

ManimiFire 08-31-2016 11:40 AM

Quote:

Originally Posted by MK.exe (Post 783820)
Looks great i hope to see more characters get the same treatment!.

This has to be in.... someone else said it.

2.2! :D lol

Monster psychic cat 08-31-2016 11:33 PM

What the developers need to do for 2.3 is hardcode every lua from Releases, even if they break.

frozenLake 09-01-2016 01:34 AM

Including the mutually exclusive ones? Or the ones that shouldn't be part of a sonic game normally?

MK.exe 09-01-2016 12:45 PM

Quote:

Originally Posted by Monster psychic cat (Post 783829)
What the developers need to do for 2.3 is hardcode every lua from Releases, even if they break.

I like the sound of this but i would pick certain ones that make sense to be hardcoded such as this one.

Plus i would of put this comment in the suggestions.... just saying :v

Demnyx Onyxwing 09-06-2016 04:24 PM

I'm trying to get these to work with SRB2Heroes. Emphasis on trying. I'm pretty sure the code is correct, but the buddies aren't forced into the animation.
Spoiler: Buddy Code

Code:

//Srb2Heroes Test
addHook("ThinkFrame", do
        for player in players.iterate
                if (player.exiting)
                and player.speed == 0
                and player.tails.speed == 0
                and player.knuckles.speed == 0
                and P_IsObjectOnGround(player.mo)
                and P_IsObjectOnGround(player.tails)
                and P_IsObjectOnGround(player.knuckles)
                and ((player.mo.state == S_PLAY_STND) or (player.mo.state == S_PLAY_TAP1) or (player.mo.state == S_PLAY_TAP2))
                and not (player.pflags & PF_NIGHTSMODE)
                and not (maptol & TOL_NIGHTS)
                        if (player.tails) and (player.tails.skin == "h_tails")
                                player.tails.state = S_TSVC1
                        elseif (player.tails) and (player.tails.skin == "h_knuckles")
                                player.tails.state = S_KNVC1
                        end
                        if (player.knuckles) and (player.knuckles.skin == "h_tails")
                                player.knuckles.state = S_TSVC1
                        elseif (player.knuckles) and (player.knuckles.skin == "h_knuckles")
                                player.knuckles.state = S_KNVC1
                        end
                end
        end
end)


Demnyx Onyxwing 09-06-2016 05:33 PM

Spoiler: Original post
When I take out all the checks except for P_IsObjectOnGround, it still doesn't seem to work, even when I put the code into LUA_ANIM.
I sort of know how to add these poses to Heroes. I might sometime in the future.

KobaBeach 09-07-2016 09:10 PM

Cute idea.

Quote:

Originally Posted by Nomekop (Post 783831)
Including the mutually exclusive ones? Or the ones that shouldn't be part of a sonic game normally?

Quote:

Originally Posted by MK.exe (Post 783840)
I like the sound of this but i would pick certain ones that make sense to be hardcoded such as this one.

Plus i would of put this comment in the suggestions.... just saying :v

p sure he was joking lol

Boo 09-09-2016 05:20 PM

Nice wad, I like those Poses!

Soniko 09-10-2016 05:34 PM

Hey Duon I tried to add my own victory pose for Shadow but it didn't work and everyone else victory poses don't trigger, any tips?


Sapheros 09-10-2016 05:48 PM

You forgot to leave an end for FSonic's line. Everything else should be good.

Soniko 09-10-2016 10:38 PM

Quote:

Originally Posted by Duon the Adventurer (Post 784279)
You forgot to leave an end for FSonic's line. Everything else should be good.

Fixed it, but he does use sonic's animation ._.

Sapheros 09-10-2016 10:40 PM

... looks at the images again

Yeah um, make sure the sprites go to SHVC instead of SNVC.

http://prntscr.com/cgjwgl
http://prntscr.com/cgjwgl


All times are GMT. The time now is 09:35 AM.

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