View Full Version : Help needed with simple...ish platformer
badboy_beavz
April 2nd, 2005, 08:15 AM
Thanks for having a look- I'm making a platformer where you can shoot jump and duck but I'm having some problems with the Actionscript- I can't get my guy to duck. My AS is set up with animations for each direction ( so there's a Walk Left and a Walk right- the same animation just mirrored) but I can't get him to duck. Also i have no idea how to make him shoot . Thanks in advance.
dayglowdave
April 2nd, 2005, 02:04 PM
Thanks for having a look- I'm making a platformer where you can shoot jump and duck but I'm having some problems with the Actionscript- I can't get my guy to duck. My AS is set up with animations for each direction ( so there's a Walk Left and a Walk right- the same animation just mirrored) but I can't get him to duck. Also i have no idea how to make him shoot . Thanks in advance.
here is something I coded awhile ago. Now it uses animation done by hand over AS physics things like gravity and what not. But that is because I'm not good enought o code the physics. But I can animate by hand.
badboy_beavz
April 2nd, 2005, 07:43 PM
here is something I coded awhile ago. Now it uses animation done by hand over AS physics things like gravity and what not. But that is because I'm not good enought o code the physics. But I can animate by hand.
Mine is like yours except there are seperate MC's with different animations for each direction. So you press the right key he goes to the walkRight frame. Vice versa for left. By the way, I couldn't get your .fla to work. You must be using a different version of Flash to me- I've got MX 2004. Thanks, though.
dayglowdave
April 3rd, 2005, 11:15 AM
I'm using 2004 I'm not sure if it is home or pro though that might be the difference. I've got some examples of someone remaking bubble bobble and mario in flash here somewhere. I'll look for them and post the source if I can find them :)
badboy_beavz
April 4th, 2005, 04:48 AM
I'm using 2004 I'm not sure if it is home or pro though that might be the difference. I've got some examples of someone remaking bubble bobble and mario in flash here somewhere. I'll look for them and post the source if I can find them :)
Thanks, coz all i need is the actionscript to make my guy duck! You'd think it'd be easy! Oh well. I'll keep trying but it would help if you could find that mario fla. Thanks again
dayglowdave
April 4th, 2005, 07:43 AM
Thanks, coz all i need is the actionscript to make my guy duck! You'd think it'd be easy! Oh well. I'll keep trying but it would help if you could find that mario fla. Thanks again
on(keyPress"<down><down>< down>"){
gotoAndPlay("duck"); //where "duck" is the label of your animation
}
Perhaps if you posted the fla I could help you solve it.</down></down>
badboy_beavz
April 6th, 2005, 07:56 AM
on(keyPress"<down><down>< down>"){
gotoAndPlay("duck"); //where "duck" is the label of your animation
}
Perhaps if you posted the fla I could help you solve it.</down></down>
Thanks for all your help, but igot it now.
pjuki
April 21st, 2005, 10:47 AM
Hey.. What if I whant to make it do 2 different moves.. Like duck and jump ?
When I make anotherone with jump under the first one, it still go to the duck... How can I put 2 of em together so it works probalby ?
pjuki
April 21st, 2005, 10:51 AM
Oh, I found out now..
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.