Beginner's Guide to How Sonic Worlds works.
PS: Sonic Whirlwind uses the engine Sonic Worlds.
NOTE: DON'T READ THIS UNLESS YOU'RE WILLING TO LEARN IT. THIS IS A LONG TOPIC THAT WILL TEACH YOU STEP-BY-STEP HOW SONIC WORLDS WORKS.
Link to Engine:
Grab any build you want.
- Knowledge of how to code in MMF2.
- Multimedia Fusion 2
- Basically, just have a copy of MMF2 and know what you're doing.
Part 1: Introduction
Worlds is alot different from other static engines. That means most tutorials you find won't work properly unless you port it right. This tutorial will teach you all about how Sonic Worlds works.
Part 2 - How Sensors Work
So the first thing you should know is about SENSORS. They are invisible objects that are on the player to detect collisions and crap.
Here is the basic setup of the sensors in Sonic Worlds. Granted, there are more (because this is an old build) but these are the main sensors used. Because it's Worlds, the sensors are easy to edit (the positions)
but let's not talk about that, because it might get abit advanced.
Let's look at sample code of how sensors work.
You see, if a certain sensor collides with another object, you can trigger an event. Like so:
HOW THE EVENT WORKS:
MAIN EVENT: Check YSpeed. Is it greater than 0?
ADDITIONAL EVENT: Big Bottom Sensor is overlapping the Spring.
- Set YSpeed to -16
- Set Ground to 0 (You can't move the player up without this)
- Set Action to 40 (Springing Action)
- Play Sample Spring (Sound Effect)
I'm having abit trouble explaining this. I hope you get the concept.
Part 3: XSpeed and YSpeed
XSpeed and YSpeed are pretty self-explanatory. No? Okay, you should know that the position "X" means horizontal movement. That means left and right. "Y" means vertical movement, which is up and down. Moving on, let's look at a chart here, shall we?
Greater than 0 (Positive numbers) Direction = 1 (Go Right)
Less than 0 (Negative numbers) Direction = -1 (Go Left)
Greater than 0 (Positive numbers) Go Down
Less than 0 (Negative numbers) Go Up
As you can see, it is pretty easy to grasp the concept. Sorry for the crappy chart.
1 = Facing Right
-1 = Racing Left
Easy as cake. Which is very tasty.
Q. What are MaxXSpeed and TopXSpeed Values?
A. Those are the limits of how fast the player can go.
Example: MaxXSpeed = 10
Player can only go up to 10 XSpeed.
Q. I HATE REPLACING ANIMATIONS!
A. GOD DAMN I DO TOO. THERE'S NOTHING YOU CAN DO ABOUT IT.
Q. THIS THREAD HAS HELPED ME.
A. That's not a question, but you might want to give me rep. OR I MIGHT NOT CONTINUE THIS. HAHAHAHA!
Part 4 - How Objects Work
Objects are self-explanatory. Anyone want to write a guide about that?
Part 5 - How Ground Works.
Ground = 1 Sonic won't fall because he's on the ground.
Ground = 0 Sonic is able to go off the ground.
Part 6 - How Sounds Work.
Coming Soon. When I want to write this.
Part 7 - Qualifers?!
Once again coming soon.
Part 8 - Extras
Uhh... hello. I've yet to fill this part out...
Part 9 - Tips to game making
Here are five simple rules.
1. NEVER. FORCE. FULL. SCREEN.
You can make it an option, but forcing it is just plain annoying.
2. HAVE FRIENDS TEST YOUR GAME BEFORE YOU RELEASE IT.
Often your game will be riddled with bugs that you're not aware of, and sending it to friends to test it out is the best way to make sure it's bug-clean.
3. DON'T RELY ON OTHERS.
If you're going to work on a team project, don't shove all the work to the others. Especially if you're the one who started the project/team.
Make sure you're doing your fair share of work, and others are, too.
4. ALWAYS KEEP BACKUPS OF YOUR MFA'S.
MMF2 has a bad reputation for corrupting engines randomly, so make sure you have fully dated backups for everything.
5. DON'T EVER SAY YOUR GAME IS BETTER THAN OTHERS'.
If your game really is THAT good, other people will tell you, and your game will speak for yourself. Otherwise you'll just end up looking like some bigheaded douchebag. It's just asking for a flame war. Don't start one.
Part 10 - Conclusion
Hope you've enjoyed this guide. Because I haven't enjoyed writing it >.> No really, it was... sorta fun, I guess. Expect for from me in the future... maybe.... Peace out. ~Gust