Andrew Posted December 28, 2006 Report Share Posted December 28, 2006 Can you make it an EXE? Link to comment Share on other sites More sharing options...
VectorSatyr Posted December 28, 2006 Report Share Posted December 28, 2006 I want to add Wall Sliding & Wall Jumping. The engine doesn't have that already? Sonic should be able to Wall Slide and Wall Jump in the XMas Pack... Link to comment Share on other sites More sharing options...
Zonar Games Posted December 28, 2006 Report Share Posted December 28, 2006 The engine doesn't have that already? Sonic should be able to Wall Slide and Wall Jump in the XMas Pack... I'm using a different engine Damizean made and I want to know how to add it to Damizean's other engine. Link to comment Share on other sites More sharing options...
DimensionWarped Posted December 28, 2006 Report Share Posted December 28, 2006 huh? Its the DW+Slingerland theory of fangaming cliches that simply don't work for a Sonic game. Link to comment Share on other sites More sharing options...
Damizean Posted December 28, 2006 Report Share Posted December 28, 2006 Zonar Games, even though I discourage the use of the old engine now, if you still want to adapt them to your engine, I have the previous build of Sonic Dash here so you can check out how to add it. But you should really reconsider to use the new engine... Link to comment Share on other sites More sharing options...
Zonar Games Posted December 28, 2006 Report Share Posted December 28, 2006 But you should really reconsider to use the new engine... I'm thinking about using the new engine but before I do can you explain the .XANIM files and do I have to make a new one for a new character such as Shadow if so how do I? Also one last feature If it ok I can ask for is grinding using the new engine? Link to comment Share on other sites More sharing options...
Damizean Posted December 28, 2006 Report Share Posted December 28, 2006 The XANIM is an encrypted animation file. Gotta go in a rush, I'll explain later. Link to comment Share on other sites More sharing options...
Zonar Games Posted December 28, 2006 Report Share Posted December 28, 2006 The XANIM is an encrypted animation file. Gotta go in a rush, I'll explain later. ok Link to comment Share on other sites More sharing options...
Tapika Posted December 28, 2006 Report Share Posted December 28, 2006 What do I use to open an XANIM file and edit it? Cos I've got these sonic sprites and they have WAY less walk frames... Link to comment Share on other sites More sharing options...
Damizean Posted December 28, 2006 Report Share Posted December 28, 2006 The new animation system uses external files to load animation definitions. It also supports a basic level encryption using a string as a signature (in this case, we used "FreeForUse"). The format for the animations is basically this. At first, we have the header of the animation file: [Information] ; Character name this file defines animation of Character = Sonic This tells wich variable name will output this animation file. After loading the animations, it'll result in a variable named Animations_Sonic; After this, we just define the animations: [Animation0]; Animation name and sprite used Name = Idle Sprite = sprCharacterSonicIdle ; Animation flags LoopbackTimes = -1 LoopbackFrame = 1 LoopbackAnimation = (None) SubAnimation = (None) ; Frame information Frame0_Id = 0 Frame0_Speed = 0.005 Frame1_Id = 1 Frame1_Speed = 0.1 Frame2_Id = 2 Frame2_Speed = 0.1 Frame3_SectionStart = 3 Frame3_SectionEnd = 4 Frame3_SectionRepeats = 40 Frame3_Speed = 0.13 Frame4_Id = 5 Frame4_Speed = 0.13 Frame5_SectionStart = 6 Frame5_SectionEnd = 7 Frame5_SectionRepeats = 40 Frame5_Speed = 0.13 Frame6_Id = 8 Frame6_Speed = 0.13 Frame7_Id = 9 Frame7_Speed = 0.13 Each new animation should be defined in a new sector with it's unique number. Animation0 in this case. Then, we define the name of the animation (Idle) and the sprite it'll use (sprCharacterSonicIdle). After this, we set it's flags: LoopbackTimes = Number of times the animation will repeat (-1 = infinite, 0 = play once) LoopbackFrame = To wich keyframe (animation reference, not keyframe reference) will return on repeat LoopbackAnimation = If the animation finishes, to wich animation it should go to. SubAnimation = SubAnimation there will be shown. This is only used on the Tails part. It refers to another animation defined in this file. Then we got the frame information setting. The frame information can be added in two ways: FrameX_Id = Y FrameX_Speed = Z Wich adds only 1 animation frame with that speed; and FrameX_SectionStart = A FrameX_SectionEnd = B FrameX_SectionRepeats = C FrameX_Speed = Z Wich actually adds a range of animation frames. At loading time, this statement is translated into a bunch of the previous statements, so it's only a quick way to add various frames wich are one after the other. It should be noted there's a difference between the keyframes you add in the animation definition, and the animation frames. The number of the frame in the keyframe (FrameX_Etc) doesn't correspond to an animation frame (you've gotta understand this for the LoopbackFrame). Anyway, to encrypt/deencrypt these files, in the animation loading script on the objPlayer object, it shows how to encrypt a file (it's commented). To decrypt a file, you need to use the same routine. Link to comment Share on other sites More sharing options...
Tapika Posted January 11, 2007 Report Share Posted January 11, 2007 How do you decrypt the damn XANIM thing for editing? Link to comment Share on other sites More sharing options...
Damizean Posted January 11, 2007 Report Share Posted January 11, 2007 Anyway, to encrypt/deencrypt these files, in the animation loading script on the objPlayer object, it shows how to encrypt a file (it's commented). To decrypt a file, you need to use the same routine. . Link to comment Share on other sites More sharing options...
Tapika Posted January 11, 2007 Report Share Posted January 11, 2007 I know that. x.x What I don't get is what action to use to decrypt the file. Unless ScrEncryptFile also decrypts stuff, then I've been a total n00b. x.x Forgive me, I haven't used GM for months. :/ Link to comment Share on other sites More sharing options...
Damizean Posted January 11, 2007 Report Share Posted January 11, 2007 Yeah, it decrypts stuff aswell, since the process is the same. It applies a xor bitmask for each byte using a string Link to comment Share on other sites More sharing options...
Blue Frenzy Posted January 11, 2007 Report Share Posted January 11, 2007 How do you know if it works at that speed if you can't see how is moving? ¬¬ BTW i don't know how to open this so i cant test it, sorry Link to comment Share on other sites More sharing options...
Tapika Posted January 12, 2007 Report Share Posted January 12, 2007 Well... Could someone atleast make a Sonic.XANIM that only uses 8 walk frames, 8 run frames (All 3 types), 2 spring up frames, 2 fall frames, 2 diagonal spring frames, 4 roll (jump) frames and 2 edge forward frames? I don't know how to decrypt (I haven't used GM for MONTHS) And from what Dami said I bet it's pretty hard X.X Link to comment Share on other sites More sharing options...
SimChao Posted January 12, 2007 Report Share Posted January 12, 2007 Do I need the registered version for this for work? I just wanted to try it, but my GM6 isn't registered yet. Forgive me, I'm a newb. Link to comment Share on other sites More sharing options...
Tapika Posted January 12, 2007 Report Share Posted January 12, 2007 You need GM registered. :/ Sorry. Link to comment Share on other sites More sharing options...
rogueyoshi Posted January 12, 2007 Author Report Share Posted January 12, 2007 Well... Could someone atleast make a Sonic.XANIM that only uses 8 walk frames, 8 run frames (All 3 types), 2 spring up frames, 2 fall frames, 2 diagonal spring frames, 4 roll (jump) frames and 2 edge forward frames? I don't know how to decrypt (I haven't used GM for MONTHS) And from what Dami said I bet it's pretty hard X.X Anyway, to encrypt/deencrypt these files, in the animation loading script on the objPlayer object, it shows how to encrypt a file (it's commented). To decrypt a file, you need to use the same routine. like he said, just do the exact same thing to decrypt the file. scrEncryptFile("Sonic.XANIM", "SonicDecrpted.ANIM", "FreeForUse");[/CODE]that will produce a decrypted version of sonic's animation file (Sonic.XANIM) as (SonicDecrpted.ANIM). Link to comment Share on other sites More sharing options...
Tapika Posted January 12, 2007 Report Share Posted January 12, 2007 Error in action 2 line (notimportant) (Or something like that Error opening binary file That's a problem... :/ I need some kind of decrypted version, that's ALL! Edit: F***, typing error... :/ Link to comment Share on other sites More sharing options...
rogueyoshi Posted January 12, 2007 Author Report Share Posted January 12, 2007 Error in action 2 line (notimportant) (Or something like thatError opening binary file That's a problem... :/ I need some kind of decrypted version, that's ALL! Edit: F***, typing error... :/ so now its working for you right? Link to comment Share on other sites More sharing options...
Tapika Posted January 12, 2007 Report Share Posted January 12, 2007 It works now. My typing error: scrEncryptFile("Sonic.ANIM", "SonicDecrypted.XANIM", "FreeForUse"); The bolded parts were meant to be differant... x.x Link to comment Share on other sites More sharing options...
SimChao Posted January 12, 2007 Report Share Posted January 12, 2007 You need GM registered. :/Sorry. Thanks. I guess I'll just have to get around to registering it. Link to comment Share on other sites More sharing options...
Tapika Posted January 13, 2007 Report Share Posted January 13, 2007 1 prob... How do you implement homing attack? (Pressing jump twice, dashing at enemy/homing attackable object?) Link to comment Share on other sites More sharing options...
Donutyoshi Posted December 7, 2008 Report Share Posted December 7, 2008 Can you send the engine because the attachment does not work and upload it at media fire because that site is the uploading place. Link to comment Share on other sites More sharing options...
Recommended Posts