Sonic and Sega Retro Message Board: Flash Sonic Engine - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 

Flash Sonic Engine

#1 User is offline x2i 

Posted 26 April 2012 - 04:02 PM

  • Posts: 11
  • Joined: 23-April 12
Hello all, it's my first post here so I thought I'd introduce myself a little before going into this.

My name is Dan, also known as x2i - I've grown up with Sonic and albeit being 23 years of age... I literally am obsessed with Sonic.

In case anyone is interested - about 4-5 years ago I released a small Flash Game by the name of Sonic Smash Brothers (http://www.newground...tal/view/427733) - it's basically a copy of Super Smash Brothers but with Sonic only characters in - to this day I still get e-mails saying how buggy it is and whether I'm ever going to finish it fully - however I gave up Flash a while ago in favour of web development and I've only just started getting back into it.

The reason that game even spawned was because for a while now I have been absolutely fascinated by the physics in classic Sonic games... how can something that precise have come from the 1990's when they still struggle to get it 100% to this day?
When I realised I didn't have the correct knowledge or skills to replicate it even slightly, I decided to make a fighting game which wouldn't need the complex physics too much.

However I find myself at this point in my life, what with Sonic 4 and Generations all boasting Classic Sonic type physics, it's about time I dusted my Flash skills off and tried again - researching seems to be fruitless in most cases so trial and error has been my only source - I do have some work I could show off but it's far from close.

Anyway my two questions on this are:

1) How hard do you think it would be to get these kind of physics running in Flash - and I'm talking AS2 not cruddy AS3?

AND/OR

2) Would anyone be interested in collaborating on some physics test engines if anyone has any programming skills?


I realise I sound like another fanboy coming out to say 'LOL I WNT 2 MAEK A SAWNIK ENGIN AND MAEK A GAYM CALLD SONIC FLASH ADVANCED FOREVER RUSH' but seriously... it's been bugging me for as long as I can remember. Even if I never do anything with such an engine (which is unlikely if I did) - just the sheer satisfaction to know that I figured out would be enough.

Feel free to toss this aside if I've wrongly mis-posted it in the wrong area or whatever.

Thanks

#2 User is offline Elektro-Omega 

Posted 26 April 2012 - 04:31 PM

  • Mushroom Hill'in
  • Posts: 400
  • Joined: 23-February 10
  • Gender:Male
  • Location:UK
  • Project:-
Happy first post!

I'm sure it's possible using the physics presented in the different Sonic asm files and using Mercury's physics guide and studying how the different variables translate.

Forgive me if I am wrong but I think I seen another forum member do this before. It was very accurate but was done completely in Flash (not sure which AS though).

Go for it though, it would be nice to see a complete, smooth Sonic engine in Flash.

#3 User is offline x2i 

Posted 26 April 2012 - 05:27 PM

  • Posts: 11
  • Joined: 23-April 12
Thankyou for the welcome.

Yes I do believe it's called Ultimate Flash Sonic and as far as I can see, albeit the odd glitch, it plays true to Sonic Advance style physics.

I'd like to know more about these ASM Files and Mercury's physics guide... any chance you could point me in the right direction?

#4 User is offline Elektro-Omega 

Posted 26 April 2012 - 05:39 PM

  • Mushroom Hill'in
  • Posts: 400
  • Joined: 23-February 10
  • Gender:Male
  • Location:UK
  • Project:-
No problem. The ASM Files can be accessed through the Mercurial link at the top of the forum, that will take you to the dashboard where you can click Megadrive / Genesis and select either the whichever disassembly you like. (S1 = Sonic 1, S2 = Sonic 2, etc.). The .ASM files can be opened in Notepad or an IDE of your choice (I recommend Notepad++). This method *may require some ASM / Programming knowledge for you to be able to understand what each routine does and how it effects the different aspects.

Regarding the Mercury Physics Guide, I can't seem to find it via a quick search but I'm sure if you drop him a quick PM he won't mind giving you the link.

*I used the term may because sometimes the labels can provide you with exactly the information you need.

#5 User is offline x2i 

Posted 26 April 2012 - 05:42 PM

  • Posts: 11
  • Joined: 23-April 12
Awesome, thankyou very much, I shall see how it goes with those.

In the meantime if anyone is interested in collaborating - feel free to let me know :)

#6 User is offline Mercury 

Posted 26 April 2012 - 06:09 PM

  • His Name Is Sonic
  • Posts: 1685
  • Joined: 13-November 08
  • Gender:Not Telling
  • Location:Location Location
  • Project:AeStHete
  • Wiki edits:130
Sonic Retro Wiki is your friend! Sonic Physics Guide

#7 User is offline Mr Lange 

Posted 26 April 2012 - 07:08 PM

  • A wise guy eh. I know how to DEAL with wise guys.
  • Posts: 758
  • Joined: 27-August 10
  • Gender:Male
  • Location:The Land of Waldos
  • Project:Helix, NASF DX, Sonic Overture
  • Wiki edits:1
There already exists a Sonic flash game with somewhat decent physics, and its years old.
http://www.newground...tal/view/151706

What appeals to me about the idea of a Flash based Sonic engine is that curves could be extremely complex and precise if it can utilize vector graphics instead of just bitmap based collision.

#8 User is online Aerosol 

Posted 26 April 2012 - 07:12 PM

  • FML and FU2
  • Posts: 6751
  • Joined: 27-April 08
  • Gender:Male
  • Location:Not where I want to be.
  • Project:Sonic (?): Coming summer of 2055...?
They were just talking about that, Mr. Lange.

#9 User is offline Mr Lange 

Posted 26 April 2012 - 07:21 PM

  • A wise guy eh. I know how to DEAL with wise guys.
  • Posts: 758
  • Joined: 27-August 10
  • Gender:Male
  • Location:The Land of Waldos
  • Project:Helix, NASF DX, Sonic Overture
  • Wiki edits:1
I don't see any mention of that game anywhere in the thread.

#10 User is online Aerosol 

Posted 26 April 2012 - 07:29 PM

  • FML and FU2
  • Posts: 6751
  • Joined: 27-April 08
  • Gender:Male
  • Location:Not where I want to be.
  • Project:Sonic (?): Coming summer of 2055...?

View PostMr Lange, on 26 April 2012 - 07:21 PM, said:

I don't see any mention of that game anywhere in the thread.

View Postx2i, on 26 April 2012 - 05:27 PM, said:

Thankyou for the welcome.

Yes I do believe it's called Ultimate Flash Sonic and as far as I can see, albeit the odd glitch, it plays true to Sonic Advance style physics.

I'd like to know more about these ASM Files and Mercury's physics guide... any chance you could point me in the right direction?


#11 User is offline x2i 

Posted 27 April 2012 - 11:45 AM

  • Posts: 11
  • Joined: 23-April 12
Right okay, I am following some of the guidance from the Mercury Physics guide and so far I have the basic running, jumping, rolling and skidding pretty much working okay... albeit a few glitches. I have been using the variables in the guide for acceleration, gravity etc.

At the moment, an anomoly exists when decelerating where the speed will get stuck on a number such as 0.015625 - causing Sonic's Run animation to remain even though he should be stationary - he appears to be moving ever so slightly - hardly even noticeable unless left for a long time. This tends to happen when changing direction because the variable is larger because it is designed to slow Sonic faster than normal as he is braking.

Also when rolling, if you hold the direction you are rolling, you seem to roll at a constant speed forward, probably a mis-match somewhere which I'm sure I can find if I look hard enough.

Rolling, jumping and running seem to work fine - I have got it so that Sonic's run speed is variable depending on his speed and when he exceeds a top speed he will start running with his round feet.

The hardest part and possibly the part which always makes me give up is the slopes etc... in the guide it talks about using sensors which I don't think would work too well in a non-tile based engine. I have seen some scripts out there for making the character rotate to the curvature of the ground, perhaps that might help but in terms of gaining speed down hills, resistance uphill and almost certainly loop-de-loops etc I may be on my own unless anyone else has any knowledge or experience.

However I shall persist and see what happens. If anyone would like to see what I have so far I'd be more than happy to upload an .swf file.
This post has been edited by x2i: 27 April 2012 - 11:48 AM

#12 User is offline Mr Lange 

Posted 27 April 2012 - 06:16 PM

  • A wise guy eh. I know how to DEAL with wise guys.
  • Posts: 758
  • Joined: 27-August 10
  • Gender:Male
  • Location:The Land of Waldos
  • Project:Helix, NASF DX, Sonic Overture
  • Wiki edits:1
Wow that is amazing, you got all that working already? I can't wait to see it. If you release this engine I'd certainly have a lot of fun working with Flash's flexibility in designing levels for possibly a short Sonic game of some kind. Me and a friend once made a powerful parallax engine for Flash so there's a lot of neat things that could be done combining the two.

@AerosolSP holy shit I must learn2ctrl+f

#13 User is offline x2i 

Posted 27 April 2012 - 06:54 PM

  • Posts: 11
  • Joined: 23-April 12
Yeah, I have added in a few other things just for test purposes - mainly just Springs and a Super Box just to test how the physics variables can change if one were to go into Super form for example. Also added the ability to duck - working on the Spindash.

I just know though that slopes are going to be a pain because it's what always gets me stuck... but hopefully with a little advice I might be able to conquer it once and for all.

#14 User is offline x2i 

Posted 12 May 2012 - 04:48 PM

  • Posts: 11
  • Joined: 23-April 12
Well... just got back off my holiday, hence my window of inactivity. I just wanted to show you guys what progress I have made on the Flash Sonic Engine. It's far from finished and there are bugs. The ground isn't final as I am using art based hitTest's which is the reason why I struggle in the first place - I may have to look into something else. Anyway, if anyone likes what they see let me know, if anyone wants to help, let me know. I'm sure combined we could create a half decent attempt at a flash sonic engine.

Here's the link to play - you may wish to resize your browser window to around 550x400 pixels if it lags at all: http://xboxresource....sonicengine.swf

Here's a list of known bugs and improvements pending
Spoiler

This post has been edited by x2i: 12 May 2012 - 04:49 PM

#15 User is offline Crasher 

Posted 13 May 2012 - 12:48 AM

  • Why hello there!
  • Posts: 306
  • Joined: 11-April 11
  • Gender:Male
For the slopes, you could check how Fancy Pants Adventure does it.

  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users