Greetings, all. To start off, my programming logic is fairly weak and I'm mostly restricted to if-statements. I've not dabbled much with loops yet, nor have I been able to fully figure out functions with multiple parameters. If those would aid in what I'm trying to do, I'd love some direction in those.
Here's the file I'm currently working on:
https://drive.google.com/file/d/0B04y2QAf15bveXh4SWFhQXFWdWs/view?usp=sharing
Link sprites created by TheSaiyanHog. Animations have been removed for now so I can figure out how to handle my variables.
I'm attempting to create platformer mechanics of Super Smash Bros. 3DS's Smash Run and I'm trying to manage all my variables in groups of states. So for example, I would have the following:
Player.state
Ground
Air
Landed
Slide
Climb
Water_Under
Water_Out
Player.mod
Crouch
Crouch-Walk
Walk
Run
Dash
There are several others that are incomplete as I'm having a touch enough time working with these states.
The biggest hurdle I'm coming across is telling Player what to do depending on user input as well as transitioning from state to state. Just when I think I've covered all possibilities on how a state should transition, a bug crops up. Modular design just isn't happening with my current approach; I'm having to recode most of it when I add a single variable. My head's spinning enough as-is with movement. I'm not certain how I'll be handling other states like player bonuses, penalties, attacking, defending, terrain movement limits, etc. If anyone has a sample file of a similar project I could look at, that'd also be awesome.
To anyone curious, here's an older save I have for when I had animation tied to it:
https://drive.google.com/file/d/0B04y2QAf15bvN1h1QVZOZHdpNXc/view?usp=sharing
This was before I started using playerBase for Platform behavior to work better.