A working Sonic Engine?

Non-platform specific questions.

A working Sonic Engine?

Postby CrimsonTheDarkBat » Sat Oct 02, 2010 8:38 am

Hey all, just wondering has ANYONE made a fully working Sonic Engine for GE? I've been searching for one FOREVER, and my own attempts at coding one myself have epically failed. So, if theres a Sonic base with physics as close to the original as possible, please let me know, thanks! :D
Sonic Velocity Development Thread --> http://game-editor.com/forum/viewtopic.php?f=4&t=11461

Completed Games:
Sonic: War of the Emeralds
Sonic: Empire of Nightmares
Sonic.EXE - The Game
Alice: Crimson Omen
Epsilon 27
User avatar
CrimsonTheDarkBat
 
Posts: 223
Joined: Fri Mar 21, 2008 10:54 am
Score: 20 Give a positive score

Re: A working Sonic Engine?

Postby savvy » Sat Oct 02, 2010 9:42 am

there isnt currently, but it could be done. the hardest bit is the angles, thats the problem :S
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 44 Give a positive score

Re: A working Sonic Engine?

Postby SuperSonic » Sat Oct 02, 2010 2:13 pm

"Sonic? *gasp* Did somebody say Sonic *double gasp* LOL :lol: :lol: :lol:
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: A working Sonic Engine?

Postby Waluigiftw » Fri Nov 26, 2010 4:14 pm

Well, it might not have been made with GE, but its still fun, just run GENS+ (not the other ones, theyre really slow and glitchy) and click file -> open rom -> look in the roms file included, and i gave you a bunch of sonic games and some of my other favorites too :mrgreen: :mrgreen: Go nuts!

*HINT*- Uhhhhhh, you could always rip some sprites from this.... CHeers
Oh and by the way, this is in a .tar format (best compression) 7zip should be able to handle it :mrgreen:
http://www.multiupload.com/QR5UUYB2RT
User avatar
Waluigiftw
 
Posts: 61
Joined: Mon Sep 06, 2010 2:49 pm
Location: Fox lake
Score: 3 Give a positive score

Re: A working Sonic Engine?

Postby lcl » Fri Nov 26, 2010 6:14 pm

User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: A working Sonic Engine?

Postby BloodRedDragon » Wed Dec 01, 2010 12:31 am

The loops would also be very hard to do(that is, if you're thinking of doing loops). You would either need very clever physics, or a path that activates when the player goes through the loop. :)
Current projects:
Techno-Tank Arena: on hold
Techno-Tank SuperPortal (working title): 0.1%
Bowels of Galaxies: 35% (was a bit too optimistic)
User avatar
BloodRedDragon
 
Posts: 123
Joined: Tue Jan 29, 2008 10:07 pm
Location: The Underworld
Score: 5 Give a positive score

Re: A working Sonic Engine?

Postby Waluigiftw » Thu Dec 02, 2010 10:31 pm

Yeah, loops would be dificult, because if your going through a loop and you stop, you fall out of it.
I also think that it has the potential to run slow if improperly assembled or if you overdo it with the graphics.
I guess that SEGA had a leg up on us :roll: :mrgreen:
User avatar
Waluigiftw
 
Posts: 61
Joined: Mon Sep 06, 2010 2:49 pm
Location: Fox lake
Score: 3 Give a positive score

Re: A working Sonic Engine?

Postby CrimsonTheDarkBat » Sat Jan 01, 2011 5:36 pm

Thanks guys.

Yeah, I'm gonna stick with paths for loops since it seems the easiest way around the matter.
Sonic Velocity Development Thread --> http://game-editor.com/forum/viewtopic.php?f=4&t=11461

Completed Games:
Sonic: War of the Emeralds
Sonic: Empire of Nightmares
Sonic.EXE - The Game
Alice: Crimson Omen
Epsilon 27
User avatar
CrimsonTheDarkBat
 
Posts: 223
Joined: Fri Mar 21, 2008 10:54 am
Score: 20 Give a positive score

Re: A working Sonic Engine?

Postby 247wkman » Sun Jan 30, 2011 4:56 am

edit post too long: making piont shorter . paths are fixed from actor start point so they will be inflexible and unnatural unless they are used to put sonic throught those tunnels etc.
to run sonic through a loop (the loop itself will be made up of several peices with collision to just one side to allow running into and out of but not streight though and may requre additional trigger features to prevent sonic switching in and out of the loop segments just by bumping into them)

imaginge you loop path- now place markers along it at say every 45 degrees. when sonic runs into the loop, each time he hits a marker, his gravity dirction will change for a brief instant- all the control directions will change to mach his orientation so if he hits half way up he is facing up- the forward movements will change to move upward, backward would be down and up/down would change to left/right. these changes would take place over 45 degree intervals so he should be able to propergate his forward motion through the loop but only if he is moving fast enough. if he is moving too slow the angle change will revert to standard and he will fall to the ground. it would require sonic to meet a speed condition so the markers won't trigger unless he is running into them.

another approach is not to use multiple markers but to say "when sonic collides with the loop a formula of his speed and angle will begin so that the angle would change over time in relation to his speed. the formula would have to be different if the loops are different in size.
Last edited by 247wkman on Sun Feb 26, 2012 2:17 pm, edited 2 times in total.
247wkman
 
Posts: 67
Joined: Mon Dec 13, 2010 3:55 pm
Score: 3 Give a positive score

Re: A working Sonic Engine?

Postby Waluigiftw » Sun Jan 30, 2011 5:24 am

^^^247wkman i think i now love you (as a brother of course)
but i think that that would actually work, i looked some shiz up and essentially, that IS how SEGA did it,
when you mentioned gravity i had a thought, why not put a bunch of if-then statements in the draw actor event of sonic that checks if those "markers" are being collided with using variables, then set directionalVelocity and angle to whatever you need!!
+point for 247wkman
i never would have thought of that

-> example of what draw actor event of sonic would look like
if(marker==1)
{
directional_velocity+=.5;
angle=360;
}
^^ i dont even know if that would work but there really isnt anything to say that it wouldnt
User avatar
Waluigiftw
 
Posts: 61
Joined: Mon Sep 06, 2010 2:49 pm
Location: Fox lake
Score: 3 Give a positive score

Re: A working Sonic Engine?

Postby 247wkman » Sun Jan 30, 2011 4:44 pm

Waluigiftw: wow, thanks- didn't notice your post when i decided to re-edit my first one- so if it looked like i re wrote what you said (refurning to my non programmer's conceptualisation of code speak, on animation switching)- i was actually just ironing out the kinks of my original draft. like i said- its kinda obsesive to need to know how to portray every dynamic concept- i would be very upset if it could not be done! (also wondering how to climb a rope that maybe swinging and changing angles, fire an arrow with range control, swim etc. essentially i wish to make an adventure game that more or less exploits every dynamical concept i can think of! i know story and concept comes first but i'm obsessive on details- i made my original post at 4am...god help me.
Last edited by 247wkman on Sun May 19, 2013 6:21 pm, edited 1 time in total.
247wkman
 
Posts: 67
Joined: Mon Dec 13, 2010 3:55 pm
Score: 3 Give a positive score

Re: A working Sonic Engine?

Postby Waluigiftw » Mon Jan 31, 2011 12:19 am

Its cool, and if your maing an adventure game, then check out my game viewtopic.php?f=4&t=9829 the first post has the source files, and yes my code looks like crap...but it all works! I have implemented arrows and aiming them and tons of other stuff, im going to work out swimming using a single variable and a filled region, so ill keep you updated, and you could always just ask me for help if you dont understand something :)
User avatar
Waluigiftw
 
Posts: 61
Joined: Mon Sep 06, 2010 2:49 pm
Location: Fox lake
Score: 3 Give a positive score

Re: A working Sonic Engine?

Postby 247wkman » Mon Jan 31, 2011 5:21 pm

the sonic loop thing another problem i thought of was that the loop would have to be made in two pieces. otherwise it would just be a box with a circly hole in it! you would have the first piece consisting of the entry ramp moving up, round the top and half way down- your second piece would continue the loop which would sit behind it in zdepth (of couse it will look like one piece) and to make it work you need a collider sitting at the end of the first piece so you can trigger sonics z depth to change so he is in the same depth as the second piece in order to collide/run on it and maybe a last maker to trigger him back into standard z when leaving that half (it seems quite precarious- it would have to work both ways as would the gravity triggers and i fear you could eaily be triggered into z depth oblivian! ever got stuck in a wall playing sonic? i did and that is why it sucks if you can't save!) edit: (i got this wrong ignore it)
Last edited by 247wkman on Wed Feb 02, 2011 1:30 pm, edited 1 time in total.
247wkman
 
Posts: 67
Joined: Mon Dec 13, 2010 3:55 pm
Score: 3 Give a positive score

Re: A working Sonic Engine?

Postby Waluigiftw » Mon Jan 31, 2011 10:39 pm

Well,another problem that might arise is whenever sonic is going around a loop, say to the right, if you just hold right he'll go all the way around as long as you hold down right, however in GE making the KEY_DOWN event simply alter his xvelocity would not work, so you would have to have a TON of if-then statements that check that same variable that controls his "gravity" in game, this way, it would change the "run right" from a right, to an up, to a backwards, then down, then right again

i dont think it would be hard to do, it would just take a dedicated person who has nothing better to do, but right now i have a project of my own, and i really want to finish it officially, sooooooo someone else make this sonic coding marvel
User avatar
Waluigiftw
 
Posts: 61
Joined: Mon Sep 06, 2010 2:49 pm
Location: Fox lake
Score: 3 Give a positive score

Re: A working Sonic Engine?

Postby 247wkman » Tue Feb 01, 2011 3:12 pm

yet again i get this wrong! 7 pieces it consisted of in the end, at least by how i played through it in my head (i modeled it in blender and broke it down, so i can rework them as needed) i list the conponants in order of contact as you would run through the loop from the left side.

sonic loop dynamic & construction
topZ is entry half of visible loop
bottomZ is exit half of visible loop
piece #1 is bottom right (with little bit of floor) entry collider
piece #2 is top right of enty collider (trigers collide with #1 to on and #4 to off- for running the opossit way).
piece #3 is top left of exit collider (trigers #4 to on and #1 to off).
piece #4 is bottom half of exit.
piece #5 is top collision platform, give space for trigers (rub out just above to top curve).

these conditions apply to indivual actors- a 'create' and 'destroy' approach to the colliders will work for one player but for two would be like two people trying to switch of a light at using two switchs at the same time! also a condision of being eiter side of the platform is needed incase sonic backtracks over the top.

Did an animation of the collision actors- the top ones light up to indicate they are the trigers, the bottom ones disapear to show they have been removed as collision actors (not destroyed). you will see the top right light up as the player passes over it but nothing happens because the player has entered from the left side so the result would have already set (just play vid in reverse) i can re shape these as needed if anyone would like to use the templates.

It would be better to turn of the triggers too after contact with the lower loop forms (so sonic wont bump into them if he jumps under them) but i only just thought of that. end
Attachments
loop trigger & collisions.zip
an othographic render of a sonic loop, modeled in bender, broken into the visable two halfs and the five invisable collision and trigger pieces. animated to show operation (by my guess)
(203.97 KiB) Downloaded 84 times
Last edited by 247wkman on Mon Feb 28, 2011 12:32 am, edited 7 times in total.
247wkman
 
Posts: 67
Joined: Mon Dec 13, 2010 3:55 pm
Score: 3 Give a positive score

Next

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest