|
Post by Encoder [WantaPS] on Dec 3, 2011 23:42:57 GMT -5
How do you add a homing attack in the blitz source? (not the sort that homes in on enimies (check spelling) just an air dash.
Also, a boost with mesh as well... how do you do that?
|
|
|
Post by Relentless Scorpion (ssh) on Dec 4, 2011 10:42:34 GMT -5
by coding
|
|
r543
Relic Team
Posts: 408
|
Post by r543 on Dec 6, 2011 6:23:35 GMT -5
he wants the code like me
|
|
|
Post by Th33z on Dec 6, 2011 16:12:25 GMT -5
How do you add a homing attack in the blitz source? (not the sort that homes in on enimies (check spelling) just an air dash. Also, a boost with mesh as well... how do you do that? you edit the source duh
|
|
|
Post by Relentless Scorpion (ssh) on Dec 6, 2011 17:58:53 GMT -5
long story short no one will just hand over there homing attack code
|
|
|
Post by zankuujinmujinsho on Dec 6, 2011 18:16:47 GMT -5
long story short no one will just hand over there homing attack code Learn it by yourself. It's just logic, I don't see what the problem is. Start by saying "What is a Jump Dash" "A Jump Dash is when Sonic Propels himself forward." "Hmmm, What can I do to make him go Forward at the push of a button during his jump?" And then just put a move method in another function when a button is pressed. Don't put anymore coding questions here UNLESS you already have a vague idea on how to do it. Then people can help flesh it out instead of just giving you the answer.
|
|
|
Post by Relentless Scorpion (ssh) on Dec 6, 2011 18:19:24 GMT -5
long story short no one will just hand over there homing attack code Learn it by yourself. It's just logic, I don't see what the problem is. Start by saying "What is a Jump Dash" "A Jump Dash is when Sonic Propels himself forward." "Hmmm, What can I do to make him go Forward at the push of a button during his jump?" And then just put a move method in another function when a button is pressed. Don't put anymore coding questions here UNLESS you already have an idea how to do it. Then people can help flesh it out instead of just giving you the answer. exactly............... here i will give you "1" hint mess around with the jump code
|
|
|
Post by Marble (LS5) on Dec 6, 2011 20:36:07 GMT -5
I like to use examples from other parts of the game. Find where Sonic "Propels himself" in one of the Player_Management functions.
|
|
|
Post by zankuujinmujinsho on Dec 6, 2011 20:40:22 GMT -5
I like to use examples from other parts of the game. Find where Sonic "Propels himself" in one of the Player_Management functions. Indeed, this is also very helpful.
|
|
Jloy2
Full Member
Moving at a somewhat fast pace!
Posts: 191
|
Post by Jloy2 on Dec 6, 2011 21:39:34 GMT -5
I like to use examples from other parts of the game. Find where Sonic "Propels himself" in one of the Player_Management functions. Basically that. How do you add a homing attack in the blitz source? (not the sort that homes in on enimies (check spelling) just an air dash. Also, a boost with mesh as well... how do you do that? If you take the time to study the BlitzSonic source, you actually learn quite a lot. Also experiment with code. If it fails, just restore your backup and try again. I also searched around blitzbasic.com and found a ton of nice usable libraries there. That is how I implemented some of my stuff.
|
|
|
Post by XxSuperShadicxX on Dec 6, 2011 23:32:06 GMT -5
Just by looking at the code, I was able to make a jump dash, double jump, and a boost. It's not that hard.
|
|
|
Post by 06hypersonic60 on Dec 7, 2011 3:44:56 GMT -5
How do you add a homing attack in the blitz source? (not the sort that homes in on enimies (check spelling) just an air dash. Also, a boost with mesh as well... how do you do that? U should add a code ( that you can find in the Player_Management.bb ) when you press the jump button and Motion_Ground is false. Same for boost but when motion_ground is true this time
|
|
|
Post by Gistix on Apr 5, 2012 12:07:33 GMT -5
In player_management.bb put this in Player_Action_Jump:
If (Input\Pressed\ActionA = True) Then p\Animation\Animation = 3 p\Motion\Speed\x# = Sin(p\Animation\Direction#)*3 p\Motion\Speed\y# = 0 p\Motion\Speed\z# = -Cos(p\Animation\Direction#)*3 End If
and then, you will have a beautiful jumpdash!
|
|
|
Post by Relentless Scorpion (ssh) on Apr 5, 2012 17:58:41 GMT -5
In player_management.bb put this in Player_Action_Jump: If (Input\Pressed\ActionA = True) Then p\Animation\Animation = 3 p\Motion\Speed\x# = Sin(p\Animation\Direction#)*3 p\Motion\Speed\y# = 0 p\Motion\Speed\z# = -Cos(p\Animation\Direction#)*3 End If . and then, you will have a beautiful jumpdash!
|
|