Topic: Advise on a Super Smash Bros style game

What's up everyone I kinda need some help on what scripts in UFE I need to alter to make something similar to Super Smash Bros. Also I'm curious as to if UFE can be used without the need of so many animations for every character because I doubt that I will need all of them. Any advise on how to approach this without messing the UFE scripts up?

Share

Thumbs up Thumbs down

Re: Advise on a Super Smash Bros style game

For your animation question, as long as you don't trigger that animation, missing said animation should be fine.  You can see this by disabling Parry and removing all parry related animations.  Same should work if you remove bounce animation and ensure no attacks cause bounce.  There might be an issue with a couple standard animations that you never see, but using a default animation for that should work as a quick fix.

-----------

The way I see it, there's three things from Smash you'd want to look into.  Attack/combo system, health/percent system, and the platforming system.

Attack/Combo system
The attack/combo system should be fairly easy to copy, with minimal code changes.  It's mostly your attack data, and a low-ish movement friction.  If you want DI for falling characters, you'll need to alter code in ControlsScript for that (it is a bit of work, but shouldn't be too hard).  You'll probably want to add a new variable in CharacterInfo's PhysicsData for DI (controlling how much influence they have with DI), and use that in the ControlsScript DI code.

Additionally, check this post about editing the combo counter to be live updated instead of after the combo finishes.  If you want to be exactly like Smash, you can remove combo text display altogether.

Health/Percentage System
For the health system, you'll definitely need to alter code, and you'll also need to integrate it into the knock back physics of each character.  Essentially it's a new health system.  I'd create a new variable for hit percentage, don't use Life Points as that could create more issues.  Those variables should be added to CharacterInfo, but you'll need to change corresponding functions in ControlsScript (each hit adds percentage instead of damaging Life Points, and percentage also affects knock force).

Oh, and slightly related would be the rounds system tweaked with stock/time instead.  Unless you want unique stock values for each character, I'd put this into a global config class, probably Round Options.  While there, you can also change Spawn positions from float to Vector2 (for height) to prepare for platforms...

Platforming System
But to me, the hardest part is the platforming aspects (multiple platforms you can jump through from below, and the kill zones at far edges of the world space).  UFE is base on traditional 2D fighting game mechanics, which doesn't have multiple grounds.  You would need to completely alter how UFE handles jumps and registers ground states.

For the killzone, your best bet is to create a manager that tracks all on-screen character's positions and just triggers appropriate KO animations/functions when they reach stage limits (which you'd have predefined in the manager script - could also be specific to the stage).  You won't be able to use Unity's OnTrigger since there are no rigidbodies / colliders on UFE characters (hitboxes aren't colliders).

-----------

Looking at the video MisterMind posted on Unity forums, they managed to get everything except the multiple platforms bit.  However, they got the killzones (at least at the bottom), so that's a good start.

There's also this post from PsychoGames a while back.  He's made a small start by looking at IsGrounded() in PhysicsScript (where I'd start looking to), but not sure of his progress since.

Honestly, each of these systems is pretty much worthy of their own thread!  Normally, I try testing ideas myself and posting my findings.  But "make UFE like Smash" isn't a 10 mins coding task tongue.  It's likely going to take a while to get everything working right.  If you can design your game to work without multiple platforms (like the video), then it's probably not as daunting a task since you're not not altering so much base code.

Good luck!  If you're desperate, or get really stuck, keep posting here and I'll try to pitch in where I can.

Share

Thumbs up +1 Thumbs down

Re: Advise on a Super Smash Bros style game

Thanks for the advice Yumcha but I should have been clearer on what I would like to achieve. I just mainly want to use less animations in UFE because the amount of animations in UFE is a little too much for me since I'm still new to animating in my software of choice (iClone). So yeah I just need to know what animations aren't required to make a game with UFE. After that is when I'll decide what style of gameplay my game will have. But the animation amount is overwhelming me since I'm new to animating in iClone. However if there's no way around the animations then I'll have to work even harder on my animations I guess.

Share

Thumbs up Thumbs down

Re: Advise on a Super Smash Bros style game

So if I understand you right, you want to create some animations and to make it easier you want to limit the number you have to create.

One option (if your goal learning more than creating a game), is to just start with a default UFE character and one by one create animations as you see them.  Start with idle, then move forward and back, then crouch, jump, block, crouch block, knock down etc.  Eventually, you'll cover them all doing it that way.

If your goal is making a full game, then you'll need to create as many as is required.  Which would depend on your own game with what mechanics you're using (parry, air block, ground bounce etc).  For instance, one project I'm working on has no blocking (Block Input set to None), so I don't have to worry about creating any block animations.  But also, I don't need to remove the default ones as they're not seen anyway.

Share

Thumbs up +2 Thumbs down

Re: Advise on a Super Smash Bros style game

YumChaGames wrote:

So if I understand you right, you want to create some animations and to make it easier you want to limit the number you have to create.

One option (if your goal learning more than creating a game), is to just start with a default UFE character and one by one create animations as you see them.  Start with idle, then move forward and back, then crouch, jump, block, crouch block, knock down etc.  Eventually, you'll cover them all doing it that way.

If your goal is making a full game, then you'll need to create as many as is required.  Which would depend on your own game with what mechanics you're using (parry, air block, ground bounce etc).  For instance, one project I'm working on has no blocking (Block Input set to None), so I don't have to worry about creating any block animations.  But also, I don't need to remove the default ones as they're not seen anyway.

Alright I think I get it now thanks for your helpful input. Oh by the way Yumcha I decided to start by using animations I bought from the Unity Asset Store such as Props Animations, Unity Mask Man, Big Animation Pack, and various others. So yep I needed that advice on the animations part thanks again Yumcha!

Share

Thumbs up Thumbs down