|
Post by Encoder [WantaPS] on Apr 5, 2012 22:53:10 GMT -5
(#Insert SA2 "Faker" line here#)
|
|
|
Post by chaosshadic456 on Apr 6, 2012 11:46:45 GMT -5
global skid=0 What action? This I ain't an action but a global, and the fact that you don't know this prove that you only made your engine by using the sonic speed streak source code available on youtube. NOOOO, the source code od sonic speed streak(spinethehedgehog2) is broken, I am using the source code of blitz sonic version 1, you don't understand or what?
|
|
|
Post by CarrierHack on Apr 6, 2012 14:44:52 GMT -5
Even though this is a nice tutorial, if you're only adding a falling animation, the whole function stuff is unnecessary. Basically, do everything 06hypersonic60 wrote in his first post, and then, in Player_Animation.bb, at this place: Case ACTION_COMMON SpeedLength# = Sqr#(p\Motion\Speed\x#^2+p\Motion\Speed\z#^2)
If (p\Motion\Ground = True) Then p\Animation\Animation = 0 If (SpeedLength# > 0.0) Then p\Animation\Animation = 1 If (SpeedLength# > 2.30) Then p\Animation\Animation = 2 End If
add this: If (p\Motion\Ground = False) Then p\Animation\Animation = #NumberOfYourFallingAnimation# This basically makes the falling animation play in ACTION_COMMON (- Sonic's in this action as long as you're not jumping, crouching, spindashing) as long as you're not touching the ground (read: falling). It'd look like this: Case ACTION_COMMON SpeedLength# = Sqr#(p\Motion\Speed\x#^2+p\Motion\Speed\z#^2)
If (p\Motion\Ground = True) Then p\Animation\Animation = 0 If (SpeedLength# > 0.0) Then p\Animation\Animation = 1 If (SpeedLength# > 2.30) Then p\Animation\Animation = 2 End If If (p\Motion\Ground = False) Then p\Animation\Animation = 4 ;I took 4 as the number as that'd be which you'd get if you only add a falling animation
Also 06hypersonic60, it's really nice seeing someone doing tutorials, but I'd encourage it if you'd start with explaining the basics. Blitz3d stuff (Functions, Globals, Constants, comments ( ), Sonic's actions, movement, how stuff works, before teaching specific things =) Also, explain what exactly you're doing instead of saying 'add this', since people'll understand more what they're doing, will be able to modify it a bit, and thus learn! Last thing; since you're mostly teaching animation-adding atm, like I said with the falling animation, you can basically do the same for the skidding animation. Each 'if (this) then that' which triggers ACTION_SKID, can be used to trigger p\Animation\Animation = #Stuff# in Player_Animation.bb instead, which'll save code, and make it easier to work with (As you won't end up having 10+ functions of which only half of them are actually doing something specific, the rest just being used for animations) Nice work anywho!
|
|
|
Post by 06hypersonic60 on Apr 6, 2012 15:55:55 GMT -5
1- I was thinking about explaining the basics and stuff . I'll do that tomorrow since it's week-end and I have the time. 2- For the animations, maybe you're right about the skid, but for the falling I'd like to add an action. Cuz later on, in the next tutorials I'll really need it: Example: If I wan't to add stomp and jump dash when falling, It's better to add them in a new action. that would be easier to understand or the Action Common will be soooo long and even I will be lazy to find features in it And I also don't use only actions for animating but u know that aactions have the priority. When I first started coding ( 7 months ago ) I didn't use actions to make the trick animations but when I added the fall, all the tricks have gone so I started using actions for that Anyways, thanks for the advice, and u'll see more cool stuff coming
|
|
3DSawnikku
Relic Team
Pro Coder,Rigger,Animator,GIMP-er,Etc
Posts: 647
|
Post by 3DSawnikku on Apr 22, 2012 18:03:19 GMT -5
You should do videos! it will be a little bit more clear and better directions.And nice tutorial! ;D
|
|
Henn64
Full Member
Look behind you >: )
Posts: 110
|
Post by Henn64 on Jun 23, 2012 17:59:07 GMT -5
Q: What program do you use to open/compile the .bb files (without official Blitz programs)
|
|
|
Post by Redler Red7 on Jun 24, 2012 3:41:22 GMT -5
you can open with any text editor like notepad but you can only compile it with blitz
|
|
Henn64
Full Member
Look behind you >: )
Posts: 110
|
Post by Henn64 on Jun 25, 2012 13:16:57 GMT -5
So it doesn't work if you just click "Save" then. Oh well, thanks anyway.
|
|
|
Post by odioalospoopers on Apr 21, 2013 17:27:45 GMT -5
when i try to create an executable or try to run the sonic_the_hedgehog.bb,even if i haven't changed anything,the program says"function "setcustomstate" not found and don't let me do nothing
|
|
r543
Relic Team
Posts: 408
|
Post by r543 on Apr 26, 2013 3:14:27 GMT -5
can you continue the 2d camera code ?
|
|
3DSawnikku
Relic Team
Pro Coder,Rigger,Animator,GIMP-er,Etc
Posts: 647
|
Post by 3DSawnikku on Apr 26, 2013 6:08:12 GMT -5
I will
|
|
|
Post by blackwind677 on Jun 1, 2013 19:24:38 GMT -5
Hey, I asked you a couple of questions before then I gave up on the blitz sonic engine for a llloooonngggg time, and just to ask, which software do you have use when making the fall or skid animation.
|
|
|
Post by blackwind677 on Jun 7, 2013 11:08:40 GMT -5
Man, I'm a complete mess. When on fragmotion, I tried to make a falling animation and exported in .b3d format. So before I was gonna put the code in, I wanted to play the engine a little bit and then the thing just went "memory access violation" on me. Someone please help!!
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Mar 26, 2015 4:27:01 GMT -5
If Keydown26 then BlitzSonicRocks!
|
|